Simple tool : ImageDraw() UI helper - draw shapes and get x0y0
In a Python project I needed to draw a few shapes and I found it quite cumbersome to make up coordinates (x0 y0) and such.
I made this little UI helper so maybe it'll help someone else : https://github.com/ozh/drawuihelper
/r/Python
https://redd.it/1mmh9gl
In a Python project I needed to draw a few shapes and I found it quite cumbersome to make up coordinates (x0 y0) and such.
I made this little UI helper so maybe it'll help someone else : https://github.com/ozh/drawuihelper
/r/Python
https://redd.it/1mmh9gl
Reddit
From the Python community on Reddit: Simple tool : ImageDraw() UI helper - draw shapes and get x0y0
Explore this post and more from the Python community
Pybotchi 101: Simple MCP Integration
https://github.com/amadolid/pybotchi
- What My Project Does
- Nested Intent-Based Supervisor Agent Builder
- Target Audience
- for production
- Comparison
- lightweight, framework agnostic and simpler way of declaring graph.
# Topic: MCP Integration
# As Client
### Prerequisite
- LLM Declaration
```python
from pybotchi import LLM
from langchain_openai import ChatOpenAI
LLM.add(
base = ChatOpenAI(.....)
)
```
- MCP Server (`MCP-Atlassian`)
> docker run --rm -p 9000:9000 -i --env-file your-env.env ghcr.io/sooperset/mcp-atlassian:latest --transport streamable-http --port 9000 -vv
### Simple Pybotchi Action
```python
from pybotchi import ActionReturn, MCPAction, MCPConnection
class AtlassianAgent(MCPAction):
"""Atlassian query."""
__mcp_connections__ = [
MCPConnection("jira", "http://0.0.0.0:9000/mcp", require_integration=False)
]
async def post(self, context):
readable_response = await context.llm.ainvoke(context.prompts)
await context.add_response(self, readable_response.content)
return ActionReturn.END
```
- `post` is only recommended if mcp tools responses is not in natural language yet.
- You can leverage `post` or `commit_context` for final response generation
### View Graph
```python
from asyncio import run
from pybotchi import graph
print(run(graph(AtlassianAgent)))
```
#### **Result**
```
flowchart TD
mcp.jira.JiraCreateIssueLink[mcp.jira.JiraCreateIssueLink]
mcp.jira.JiraUpdateSprint[mcp.jira.JiraUpdateSprint]
mcp.jira.JiraDownloadAttachments[mcp.jira.JiraDownloadAttachments]
mcp.jira.JiraDeleteIssue[mcp.jira.JiraDeleteIssue]
mcp.jira.JiraGetTransitions[mcp.jira.JiraGetTransitions]
mcp.jira.JiraUpdateIssue[mcp.jira.JiraUpdateIssue]
mcp.jira.JiraSearch[mcp.jira.JiraSearch]
mcp.jira.JiraGetAgileBoards[mcp.jira.JiraGetAgileBoards]
mcp.jira.JiraAddComment[mcp.jira.JiraAddComment]
mcp.jira.JiraGetSprintsFromBoard[mcp.jira.JiraGetSprintsFromBoard]
mcp.jira.JiraGetSprintIssues[mcp.jira.JiraGetSprintIssues]
__main__.AtlassianAgent[__main__.AtlassianAgent]
mcp.jira.JiraLinkToEpic[mcp.jira.JiraLinkToEpic]
mcp.jira.JiraCreateIssue[mcp.jira.JiraCreateIssue]
mcp.jira.JiraBatchCreateIssues[mcp.jira.JiraBatchCreateIssues]
mcp.jira.JiraSearchFields[mcp.jira.JiraSearchFields]
mcp.jira.JiraGetWorklog[mcp.jira.JiraGetWorklog]
mcp.jira.JiraTransitionIssue[mcp.jira.JiraTransitionIssue]
mcp.jira.JiraGetProjectVersions[mcp.jira.JiraGetProjectVersions]
mcp.jira.JiraGetUserProfile[mcp.jira.JiraGetUserProfile]
mcp.jira.JiraGetBoardIssues[mcp.jira.JiraGetBoardIssues]
mcp.jira.JiraGetProjectIssues[mcp.jira.JiraGetProjectIssues]
mcp.jira.JiraAddWorklog[mcp.jira.JiraAddWorklog]
mcp.jira.JiraCreateSprint[mcp.jira.JiraCreateSprint]
mcp.jira.JiraGetLinkTypes[mcp.jira.JiraGetLinkTypes]
mcp.jira.JiraRemoveIssueLink[mcp.jira.JiraRemoveIssueLink]
mcp.jira.JiraGetIssue[mcp.jira.JiraGetIssue]
mcp.jira.JiraBatchGetChangelogs[mcp.jira.JiraBatchGetChangelogs]
__main__.AtlassianAgent --> mcp.jira.JiraCreateIssueLink
__main__.AtlassianAgent --> mcp.jira.JiraGetLinkTypes
__main__.AtlassianAgent --> mcp.jira.JiraDownloadAttachments
__main__.AtlassianAgent --> mcp.jira.JiraAddWorklog
__main__.AtlassianAgent --> mcp.jira.JiraRemoveIssueLink
__main__.AtlassianAgent --> mcp.jira.JiraCreateIssue
__main__.AtlassianAgent --> mcp.jira.JiraLinkToEpic
__main__.AtlassianAgent --> mcp.jira.JiraGetSprintsFromBoard
__main__.AtlassianAgent --> mcp.jira.JiraGetAgileBoards
__main__.AtlassianAgent --> mcp.jira.JiraBatchCreateIssues
__main__.AtlassianAgent --> mcp.jira.JiraSearchFields
__main__.AtlassianAgent --> mcp.jira.JiraGetSprintIssues
__main__.AtlassianAgent --> mcp.jira.JiraSearch
__main__.AtlassianAgent
/r/Python
https://redd.it/1mmo3gx
https://github.com/amadolid/pybotchi
- What My Project Does
- Nested Intent-Based Supervisor Agent Builder
- Target Audience
- for production
- Comparison
- lightweight, framework agnostic and simpler way of declaring graph.
# Topic: MCP Integration
# As Client
### Prerequisite
- LLM Declaration
```python
from pybotchi import LLM
from langchain_openai import ChatOpenAI
LLM.add(
base = ChatOpenAI(.....)
)
```
- MCP Server (`MCP-Atlassian`)
> docker run --rm -p 9000:9000 -i --env-file your-env.env ghcr.io/sooperset/mcp-atlassian:latest --transport streamable-http --port 9000 -vv
### Simple Pybotchi Action
```python
from pybotchi import ActionReturn, MCPAction, MCPConnection
class AtlassianAgent(MCPAction):
"""Atlassian query."""
__mcp_connections__ = [
MCPConnection("jira", "http://0.0.0.0:9000/mcp", require_integration=False)
]
async def post(self, context):
readable_response = await context.llm.ainvoke(context.prompts)
await context.add_response(self, readable_response.content)
return ActionReturn.END
```
- `post` is only recommended if mcp tools responses is not in natural language yet.
- You can leverage `post` or `commit_context` for final response generation
### View Graph
```python
from asyncio import run
from pybotchi import graph
print(run(graph(AtlassianAgent)))
```
#### **Result**
```
flowchart TD
mcp.jira.JiraCreateIssueLink[mcp.jira.JiraCreateIssueLink]
mcp.jira.JiraUpdateSprint[mcp.jira.JiraUpdateSprint]
mcp.jira.JiraDownloadAttachments[mcp.jira.JiraDownloadAttachments]
mcp.jira.JiraDeleteIssue[mcp.jira.JiraDeleteIssue]
mcp.jira.JiraGetTransitions[mcp.jira.JiraGetTransitions]
mcp.jira.JiraUpdateIssue[mcp.jira.JiraUpdateIssue]
mcp.jira.JiraSearch[mcp.jira.JiraSearch]
mcp.jira.JiraGetAgileBoards[mcp.jira.JiraGetAgileBoards]
mcp.jira.JiraAddComment[mcp.jira.JiraAddComment]
mcp.jira.JiraGetSprintsFromBoard[mcp.jira.JiraGetSprintsFromBoard]
mcp.jira.JiraGetSprintIssues[mcp.jira.JiraGetSprintIssues]
__main__.AtlassianAgent[__main__.AtlassianAgent]
mcp.jira.JiraLinkToEpic[mcp.jira.JiraLinkToEpic]
mcp.jira.JiraCreateIssue[mcp.jira.JiraCreateIssue]
mcp.jira.JiraBatchCreateIssues[mcp.jira.JiraBatchCreateIssues]
mcp.jira.JiraSearchFields[mcp.jira.JiraSearchFields]
mcp.jira.JiraGetWorklog[mcp.jira.JiraGetWorklog]
mcp.jira.JiraTransitionIssue[mcp.jira.JiraTransitionIssue]
mcp.jira.JiraGetProjectVersions[mcp.jira.JiraGetProjectVersions]
mcp.jira.JiraGetUserProfile[mcp.jira.JiraGetUserProfile]
mcp.jira.JiraGetBoardIssues[mcp.jira.JiraGetBoardIssues]
mcp.jira.JiraGetProjectIssues[mcp.jira.JiraGetProjectIssues]
mcp.jira.JiraAddWorklog[mcp.jira.JiraAddWorklog]
mcp.jira.JiraCreateSprint[mcp.jira.JiraCreateSprint]
mcp.jira.JiraGetLinkTypes[mcp.jira.JiraGetLinkTypes]
mcp.jira.JiraRemoveIssueLink[mcp.jira.JiraRemoveIssueLink]
mcp.jira.JiraGetIssue[mcp.jira.JiraGetIssue]
mcp.jira.JiraBatchGetChangelogs[mcp.jira.JiraBatchGetChangelogs]
__main__.AtlassianAgent --> mcp.jira.JiraCreateIssueLink
__main__.AtlassianAgent --> mcp.jira.JiraGetLinkTypes
__main__.AtlassianAgent --> mcp.jira.JiraDownloadAttachments
__main__.AtlassianAgent --> mcp.jira.JiraAddWorklog
__main__.AtlassianAgent --> mcp.jira.JiraRemoveIssueLink
__main__.AtlassianAgent --> mcp.jira.JiraCreateIssue
__main__.AtlassianAgent --> mcp.jira.JiraLinkToEpic
__main__.AtlassianAgent --> mcp.jira.JiraGetSprintsFromBoard
__main__.AtlassianAgent --> mcp.jira.JiraGetAgileBoards
__main__.AtlassianAgent --> mcp.jira.JiraBatchCreateIssues
__main__.AtlassianAgent --> mcp.jira.JiraSearchFields
__main__.AtlassianAgent --> mcp.jira.JiraGetSprintIssues
__main__.AtlassianAgent --> mcp.jira.JiraSearch
__main__.AtlassianAgent
/r/Python
https://redd.it/1mmo3gx
GitHub
GitHub - amadolid/pybotchi
Contribute to amadolid/pybotchi development by creating an account on GitHub.
Thin view fat model, mixins, repository/service pattern, which to use for growing project ?
I have created a SaaS 5 years ago when I was not as skilled as today and the project was still fairly small in LOC. Fast forward to today I want to take the end of the year to fully refactor my codebase that is getting harder to manage with lot of boilerplate.
I have been using Go and Flutter and was happy with the repository/service layer but feel like it might be anti-Django.
For big growing project, what is your best approach to organize your code ?
For instance my project both handle Api and HTMX/HTML request
/r/django
https://redd.it/1mmk5ue
I have created a SaaS 5 years ago when I was not as skilled as today and the project was still fairly small in LOC. Fast forward to today I want to take the end of the year to fully refactor my codebase that is getting harder to manage with lot of boilerplate.
I have been using Go and Flutter and was happy with the repository/service layer but feel like it might be anti-Django.
For big growing project, what is your best approach to organize your code ?
For instance my project both handle Api and HTMX/HTML request
/r/django
https://redd.it/1mmk5ue
Reddit
From the django community on Reddit
Explore this post and more from the django community
PyWine - Containerized Wine with Python to test project under Windows environment
- What My Project Does - PyWine allows to test Python code under Windows environment using containerized Wine. Useful during local development when you natively use Linux or macOS without need of using heavy Virtual Machine. Also it can be used in CI without need of using Windows CI runners. It unifies local development with CI.
- Target Audience - Linux/macOS Python developers that want to test their Python code under Windows environment. For example to test native Windows named pipes when using Python built-in multiprocessing.connection module.
- Comparison - https://github.com/webcomics/pywine, project with the same name but it doesn't provide the same seamless experience. Like running it out-of-box with the same defined CI job for
- Check the GitLab project for usage: https://gitlab.com/tymonx/pywine
- Check the real usage example from gitlab.com/tymonx/pytcl/.gitlab-ci.yml with GitLab CI job pytest-windows
/r/Python
https://redd.it/1mmow8a
- What My Project Does - PyWine allows to test Python code under Windows environment using containerized Wine. Useful during local development when you natively use Linux or macOS without need of using heavy Virtual Machine. Also it can be used in CI without need of using Windows CI runners. It unifies local development with CI.
- Target Audience - Linux/macOS Python developers that want to test their Python code under Windows environment. For example to test native Windows named pipes when using Python built-in multiprocessing.connection module.
- Comparison - https://github.com/webcomics/pywine, project with the same name but it doesn't provide the same seamless experience. Like running it out-of-box with the same defined CI job for
pytest or locally without need of executing some magic script like /opt/mkuserwineprefix- Check the GitLab project for usage: https://gitlab.com/tymonx/pywine
- Check the real usage example from gitlab.com/tymonx/pytcl/.gitlab-ci.yml with GitLab CI job pytest-windows
/r/Python
https://redd.it/1mmow8a
GitLab
Tymoteusz Blazejczyk / PyWine · GitLab
Containerized Wine with Windows version of Python. Test your Python...
Zero to hero and where to start?
As you can see from the title I’m currently a zero with dreams to be a hero lol. I’m new to the world of coding and have always heard about python being one of the most useful languages. Any advice for a beginner or good places to start? From what I’ve gathered it’s best to just throw yourself into it and pick a project/figure it out vs wasting time with boot camps and all of that jazz. Any resources that have helped you along your journey would be greatly appreciated. 💯🙏😁
/r/Python
https://redd.it/1mmu0qk
As you can see from the title I’m currently a zero with dreams to be a hero lol. I’m new to the world of coding and have always heard about python being one of the most useful languages. Any advice for a beginner or good places to start? From what I’ve gathered it’s best to just throw yourself into it and pick a project/figure it out vs wasting time with boot camps and all of that jazz. Any resources that have helped you along your journey would be greatly appreciated. 💯🙏😁
/r/Python
https://redd.it/1mmu0qk
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
DRF and JWT Authentication
Hello guys, i just made an app for JWT authentication in Django Rest Framework.
I would be pleased if you can check and give be feedbacks. Thank you
The GitHub link: https://github.com/JulesC836/drf_auth_with_jwt.git
/r/django
https://redd.it/1mmllht
Hello guys, i just made an app for JWT authentication in Django Rest Framework.
I would be pleased if you can check and give be feedbacks. Thank you
The GitHub link: https://github.com/JulesC836/drf_auth_with_jwt.git
/r/django
https://redd.it/1mmllht
GitHub
GitHub - JulesC836/drf_auth_with_jwt: A django auth app using Json Web Token
A django auth app using Json Web Token. Contribute to JulesC836/drf_auth_with_jwt development by creating an account on GitHub.
AFDebugging help: Flaskapp can't find static files
I'm running flask 3.0.3 with python 3.11 and have a strange issue where it can't find a simple css file I have in there. When I give a path to my static file I get a 404 can't be found.
my file structure is like the below:
project
init.py
controller.py
config.py
templates
templatefile.html
static
style.css
I haven't tried a lot yet, I started seeing if I made a mistake compared to how it's done in the flask tutorial but I can't see where I've gone wrong, I also looked on stack overflow a bit. I've tried setting a path directly to the static folder, inside __init__.py
Is there a way I can debug this and find what path it is looking for static files in?
# Edit: Additional info from questions in comments.
- I am using
/r/flask
https://redd.it/1mmptbh
I'm running flask 3.0.3 with python 3.11 and have a strange issue where it can't find a simple css file I have in there. When I give a path to my static file I get a 404 can't be found.
my file structure is like the below:
project
init.py
controller.py
config.py
templates
templatefile.html
static
style.css
I haven't tried a lot yet, I started seeing if I made a mistake compared to how it's done in the flask tutorial but I can't see where I've gone wrong, I also looked on stack overflow a bit. I've tried setting a path directly to the static folder, inside __init__.py
app = Flask(__name__, static_folder=STATIC_DIR)Is there a way I can debug this and find what path it is looking for static files in?
# Edit: Additional info from questions in comments.
- I am using
/r/flask
https://redd.it/1mmptbh
Best way to showcase pre-production?
I’m currently working on a website for a friend, who doesn’t have much technical experience. I want to show him the progress I have so far, and let him try it out, but I don’t want to pay for anything. I’m kind of new to this stuff myself, but I have heard of GitHub pages. I believe it is only for static sites though. Is there a good free alternative for flask sites?
/r/flask
https://redd.it/1mmy9uw
I’m currently working on a website for a friend, who doesn’t have much technical experience. I want to show him the progress I have so far, and let him try it out, but I don’t want to pay for anything. I’m kind of new to this stuff myself, but I have heard of GitHub pages. I believe it is only for static sites though. Is there a good free alternative for flask sites?
/r/flask
https://redd.it/1mmy9uw
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Monday Daily Thread: Project ideas!
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1mmy5dl
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1mmy5dl
YouTube
Build & Integrate your own custom chatbot to a website (Python & JavaScript)
In this fun project you learn how to build a custom chatbot in Python and then integrate this to a website using Flask and JavaScript.
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
VectorDB - In-memory vector database with swappable indexing
# What My Project Does
It's a lightweight vector database that runs entirely in-memory. You can store embeddings, search for similar vectors, and switch between different indexing algorithms (Linear, KD-Tree, LSH) without rebuilding your data.
# Target Audience
This is for developers who need vector search in prototypes or small projects. Not meant for production with millions of vectors - use Pinecone or Weaviate for that.
# Comparison
Unlike Chroma/Weaviate, this doesn't require Docker or external services. Unlike FAISS, you can swap index types on the fly. Unlike Pinecone, it's free and runs locally. The tradeoff: it's in-memory only (with JSON snapshots) and caps out around 100-500k vectors.
GitHub: https://github.com/doganarif/vectordb
/r/Python
https://redd.it/1mn0ig1
# What My Project Does
It's a lightweight vector database that runs entirely in-memory. You can store embeddings, search for similar vectors, and switch between different indexing algorithms (Linear, KD-Tree, LSH) without rebuilding your data.
# Target Audience
This is for developers who need vector search in prototypes or small projects. Not meant for production with millions of vectors - use Pinecone or Weaviate for that.
# Comparison
Unlike Chroma/Weaviate, this doesn't require Docker or external services. Unlike FAISS, you can swap index types on the fly. Unlike Pinecone, it's free and runs locally. The tradeoff: it's in-memory only (with JSON snapshots) and caps out around 100-500k vectors.
GitHub: https://github.com/doganarif/vectordb
/r/Python
https://redd.it/1mn0ig1
GitHub
GitHub - doganarif/vectordb
Contribute to doganarif/vectordb development by creating an account on GitHub.
Do Django migrations make anyone else nervous? Just curious !
Every time I hit migrate on a big project, there’s that tiny voice in my head like this might be the one that blows everything up.
99% of the time it’s fine… but that 1% sticks with you.
Do you just trust it and hope for the best, or always run it on staging first?
/r/django
https://redd.it/1mmzx36
Every time I hit migrate on a big project, there’s that tiny voice in my head like this might be the one that blows everything up.
99% of the time it’s fine… but that 1% sticks with you.
Do you just trust it and hope for the best, or always run it on staging first?
/r/django
https://redd.it/1mmzx36
Reddit
From the django community on Reddit
Explore this post and more from the django community
Should I put my data synchronization in a separate app?
I have a new Django app that handles different things of an industry. All the primary data, such as costumers and inventory info comes from the business' ERP API endpoints. I sync this information on an hourly basis with a chron job and it always follow the same pattern:
- Update the Job's database row to register the update time and that the sync started
- Fetch the data
- Run a function that will parse (don't use serializer because it is very slow) the data and handle to allow me to bulk update and create the information
- Update the Job's database row again
Right now my Django app is just a single big app and I'm splitting it into separate apps to make maintance easier, since it is new and didn't hit production yet there's no need to worry about how the migrations/data will be, I can just reset everything if needed. I'm thinking about creating an app just for the Job information and keep there everything related to it there, including the functions that parse the data in a structure like this:
```
project_root/
│
├── customers/
├── inventory/
/r/django
https://redd.it/1mn3tdj
I have a new Django app that handles different things of an industry. All the primary data, such as costumers and inventory info comes from the business' ERP API endpoints. I sync this information on an hourly basis with a chron job and it always follow the same pattern:
- Update the Job's database row to register the update time and that the sync started
- Fetch the data
- Run a function that will parse (don't use serializer because it is very slow) the data and handle to allow me to bulk update and create the information
- Update the Job's database row again
Right now my Django app is just a single big app and I'm splitting it into separate apps to make maintance easier, since it is new and didn't hit production yet there's no need to worry about how the migrations/data will be, I can just reset everything if needed. I'm thinking about creating an app just for the Job information and keep there everything related to it there, including the functions that parse the data in a structure like this:
```
project_root/
│
├── customers/
├── inventory/
/r/django
https://redd.it/1mn3tdj
Reddit
From the django community on Reddit
Explore this post and more from the django community
I made a snorkel forecast site in Django
https://github.com/dunctk/snorkelforecast
/r/django
https://redd.it/1mmds3n
https://github.com/dunctk/snorkelforecast
/r/django
https://redd.it/1mmds3n
GitHub
GitHub - dunctk/snorkelforecast
Contribute to dunctk/snorkelforecast development by creating an account on GitHub.
Am willing to work on any Django project in exchange for a laptop
Been working with Django for a while now, I have significant experience and would be asset,,my laptop just got stolen when I was about to get my project to it's completion stage,,,but thank God I had it backed up on GitHub
/r/django
https://redd.it/1mn9lbv
Been working with Django for a while now, I have significant experience and would be asset,,my laptop just got stolen when I was about to get my project to it's completion stage,,,but thank God I had it backed up on GitHub
/r/django
https://redd.it/1mn9lbv
Reddit
From the django community on Reddit
Explore this post and more from the django community
SMTP internal server error in fastapi
I have problem on sending SMTP mail on savella platform using fastapi for mail service I am using aiosmtplib and I try many port numbers like 587,25,2525,465 none is working and return 500 internal server issue when itry on local host it is working properly
/r/Python
https://redd.it/1mn5ukj
I have problem on sending SMTP mail on savella platform using fastapi for mail service I am using aiosmtplib and I try many port numbers like 587,25,2525,465 none is working and return 500 internal server issue when itry on local host it is working properly
/r/Python
https://redd.it/1mn5ukj
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
So, what happened to pypistats?
I use this site https://www.pypistats.org/ to gauge the popularity of certain packages, but it has been down for about a month. What gives?
/r/Python
https://redd.it/1mnaren
I use this site https://www.pypistats.org/ to gauge the popularity of certain packages, but it has been down for about a month. What gives?
/r/Python
https://redd.it/1mnaren
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
APIException (#3 in r/FastAPI pip package flair) – Fixes Messy JSON Responses (+0.72 ms)
What My Project Does
If you’ve built anything with FastAPI, you’ve probably seen this mess:
* One endpoint returns 200 with one key structure
* Another throws an error with a completely different format
* Pydantic validation errors use yet another JSON shape
* An unhandled exception drops an HTML error page into your API, and yeah, FastAPI auto-generates Swagger, but it doesn’t correctly show error cases by default.
The frontend team cries because now they have to handle **five** different response shapes.
**With** [APIException](https://github.com/akutayural/APIException)**:**
* Both success and error responses follow the same ResponseModel schema
* Even unhandled exceptions return the same JSON format
* Swagger docs show **every** possible response (200, 400, 500…) with clear models
* Frontend devs stop asking “what does this endpoint return?” – it’s always the same
* All errors are logged by default
**Target Audience**
* FastAPI devs are tired of inconsistent response formats
* Teams that want clean, predictable Swagger docs
* Anyone who wants unhandled exceptions to return nice, readable JSON
* People who like “one format, zero surprises” between backend and frontend
**Comparison**
I benchmarked it against FastAPI’s built-in HTTPException using Locust with 200 concurrent users for 2 minutes:
|fastapi HTTPException|apiexception APIException|
|:-|:-|
|Avg Latency|2.00ms|2.72ms|
|P95|5ms|6ms|
|P99|9ms|19ms|
|Max Latency|44ms|96ms|
|RPS|609|609|
The difference is acceptable since **APIException** also **logs the exceptions**.
Also, most libraries only standardise errors. This one
/r/Python
https://redd.it/1mnf7ss
What My Project Does
If you’ve built anything with FastAPI, you’ve probably seen this mess:
* One endpoint returns 200 with one key structure
* Another throws an error with a completely different format
* Pydantic validation errors use yet another JSON shape
* An unhandled exception drops an HTML error page into your API, and yeah, FastAPI auto-generates Swagger, but it doesn’t correctly show error cases by default.
The frontend team cries because now they have to handle **five** different response shapes.
**With** [APIException](https://github.com/akutayural/APIException)**:**
* Both success and error responses follow the same ResponseModel schema
* Even unhandled exceptions return the same JSON format
* Swagger docs show **every** possible response (200, 400, 500…) with clear models
* Frontend devs stop asking “what does this endpoint return?” – it’s always the same
* All errors are logged by default
**Target Audience**
* FastAPI devs are tired of inconsistent response formats
* Teams that want clean, predictable Swagger docs
* Anyone who wants unhandled exceptions to return nice, readable JSON
* People who like “one format, zero surprises” between backend and frontend
**Comparison**
I benchmarked it against FastAPI’s built-in HTTPException using Locust with 200 concurrent users for 2 minutes:
|fastapi HTTPException|apiexception APIException|
|:-|:-|
|Avg Latency|2.00ms|2.72ms|
|P95|5ms|6ms|
|P99|9ms|19ms|
|Max Latency|44ms|96ms|
|RPS|609|609|
The difference is acceptable since **APIException** also **logs the exceptions**.
Also, most libraries only standardise errors. This one
/r/Python
https://redd.it/1mnf7ss
GitHub
GitHub - akutayural/APIException: Standardize FastAPI error/exception handling with APIException. Custom error codes, fallback…
Standardize FastAPI error/exception handling with APIException. Custom error codes, fallback logging, and beautiful Swagger UI integration. - akutayural/APIException
I built a tool that uses the 'ast' module to auto-generate interactive flowcharts from any Python.
Like many of you, I've often found myself deep in an unfamiliar codebase, trying to trace the logic and get a high-level view of how everything fits together. It can be a real time sink. To solve this, I built a feature into my larger project, Newton, specifically for Python developers.
What the product does
Newton is a web app that parses a Python script using the ast module and automatically generates a procedural flowchart from it. It's designed to give you an instant visual understanding of the code's architecture, control flow, and dependencies.
Here it is analyzing a 3,000+ line Python application (app.py): Gx10jXQW4AAzhH5 (1903×997)
Key Features for Developers
Automated Flowcharting: Just paste your code and it builds the graph, mapping out function definitions, loops, and conditionals.
Topic Clustering: For large scripts, an AI analyzes the graph to find higher-order concepts and emergent properties. In the screenshot, you can see it identifying things like "Application Initialization" and "User Authentication" automatically. This helps you understand what different parts of the code do conceptually.
Interactive Chat: You can select a node (like a function) or a whole Topic Cluster and ask questions about it. It's like having an agent that has already read and understood your code.
Target Audience
I built this for:
Developers who are
/r/Python
https://redd.it/1mngei8
Like many of you, I've often found myself deep in an unfamiliar codebase, trying to trace the logic and get a high-level view of how everything fits together. It can be a real time sink. To solve this, I built a feature into my larger project, Newton, specifically for Python developers.
What the product does
Newton is a web app that parses a Python script using the ast module and automatically generates a procedural flowchart from it. It's designed to give you an instant visual understanding of the code's architecture, control flow, and dependencies.
Here it is analyzing a 3,000+ line Python application (app.py): Gx10jXQW4AAzhH5 (1903×997)
Key Features for Developers
Automated Flowcharting: Just paste your code and it builds the graph, mapping out function definitions, loops, and conditionals.
Topic Clustering: For large scripts, an AI analyzes the graph to find higher-order concepts and emergent properties. In the screenshot, you can see it identifying things like "Application Initialization" and "User Authentication" automatically. This helps you understand what different parts of the code do conceptually.
Interactive Chat: You can select a node (like a function) or a whole Topic Cluster and ask questions about it. It's like having an agent that has already read and understood your code.
Target Audience
I built this for:
Developers who are
/r/Python
https://redd.it/1mngei8