Quality Python Coding
From my start of learning and coding python has been on anaconda notebooks. It is best for academic and research purposes. But when it comes to industry usage, the coding style is different. They manage the code very beautifully. The way everyone oraginises the code into subfolders and having a main py file that combines everything and having deployment, api, test code in other folders. its all like a fully built building with strong foundations to architecture to overall product with integrating each and every piece. Can you guys who are in ML using python in industry give me suggestions or resources on how I can transition from notebook culture to production ready code.
/r/Python
https://redd.it/1jhq18b
From my start of learning and coding python has been on anaconda notebooks. It is best for academic and research purposes. But when it comes to industry usage, the coding style is different. They manage the code very beautifully. The way everyone oraginises the code into subfolders and having a main py file that combines everything and having deployment, api, test code in other folders. its all like a fully built building with strong foundations to architecture to overall product with integrating each and every piece. Can you guys who are in ML using python in industry give me suggestions or resources on how I can transition from notebook culture to production ready code.
/r/Python
https://redd.it/1jhq18b
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
MyPy, BasedMypy, Pyright, BasedPyright and IDE support
Hi all, earlier this week I spent far too long trying to understand why full Python type checking in Cursor (with the Mypy extension) often doesn’t work.
That got me to look into what the best type checker tooling is now anyway. Here's my TLDR from looking at this.
Thought I'd share, and I'd love any thoughts/additions/corrections.
Like many, I'd previously been using Mypy, the OG type checker for Python. Mypy has since been enhanced as BasedMypy.
The other popular alternative is Microsoft's Pyright. And it has a newer extension and fork called BasedPyright.
All of these work in build systems. But this is a choice not just of build tooling—it is far preferable to have your type checker warnings align with your IDE warnings. With the rises of AI-powered IDEs like Cursor and Windsurf that are VSCode extensions, it seems like type checking support as a VSCode-compatible extension is essential.
However, Microsoft's popular Mypy VSCode extension is licensed only for use in VSCode (not other IDEs) and sometimes refuses to work in Cursor. Cursor's docs suggest Mypy but don't suggest a VSCode extension.
After some experimentation, I found BasedPyright to be a credible improvement on Pyright. BasedPyright is well maintained, is faster than Mypy, and has
/r/Python
https://redd.it/1jhiwne
Hi all, earlier this week I spent far too long trying to understand why full Python type checking in Cursor (with the Mypy extension) often doesn’t work.
That got me to look into what the best type checker tooling is now anyway. Here's my TLDR from looking at this.
Thought I'd share, and I'd love any thoughts/additions/corrections.
Like many, I'd previously been using Mypy, the OG type checker for Python. Mypy has since been enhanced as BasedMypy.
The other popular alternative is Microsoft's Pyright. And it has a newer extension and fork called BasedPyright.
All of these work in build systems. But this is a choice not just of build tooling—it is far preferable to have your type checker warnings align with your IDE warnings. With the rises of AI-powered IDEs like Cursor and Windsurf that are VSCode extensions, it seems like type checking support as a VSCode-compatible extension is essential.
However, Microsoft's popular Mypy VSCode extension is licensed only for use in VSCode (not other IDEs) and sometimes refuses to work in Cursor. Cursor's docs suggest Mypy but don't suggest a VSCode extension.
After some experimentation, I found BasedPyright to be a credible improvement on Pyright. BasedPyright is well maintained, is faster than Mypy, and has
/r/Python
https://redd.it/1jhiwne
GitHub
GitHub - python/mypy: Optional static typing for Python
Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.
Best way to handle concurrency in Python for a micro-benchmark ? (not threading)
Hey everyone, I’m working on a **micro-benchmark** comparing concurrency performance across multiple languages: Rust, Go, Python, and Lua. Out of these, **Python is the one I have the least experience with**, so I could really use some input from experienced folks here!
# The Benchmark Setup:
* The goal is to test how each language handles **concurrent task execution**.
* The benchmark runs **15,000,000 loops**, and in **each iteration**, we send a **non-IO-blocking request** to an **async function** with a **1-second delay**.
* The function takes the loop index `i` and appends it to the **end of an array**.
* The final expected result would look like:csharpCopyEdit\[0, 1, 2, ..., 14\_999\_999\]
* We measure **total execution time** to compare efficiency.
# External Libraries Policy:
* **All external libraries are allowed** as long as they **aren't runtime-related** (i.e., no JIT compilers or VM optimizations).
* **For Rust**, I’ve tested this using **Tokio, async-std, and smol**.
* **For Go**, I’ve experimented with **goroutines and worker pools**.
* **For Python, I need guidance!**
# My Python Questions:
* Should I go for **vectorized solutions** (NumPy, Numba)?
* Would **Cython** or a different low-level optimization be a better approach?
* What’s the best async library to use? Should I stick with **asyncio** or use something like **Trio or Curio**?
*
/r/Python
https://redd.it/1jhn4fo
Hey everyone, I’m working on a **micro-benchmark** comparing concurrency performance across multiple languages: Rust, Go, Python, and Lua. Out of these, **Python is the one I have the least experience with**, so I could really use some input from experienced folks here!
# The Benchmark Setup:
* The goal is to test how each language handles **concurrent task execution**.
* The benchmark runs **15,000,000 loops**, and in **each iteration**, we send a **non-IO-blocking request** to an **async function** with a **1-second delay**.
* The function takes the loop index `i` and appends it to the **end of an array**.
* The final expected result would look like:csharpCopyEdit\[0, 1, 2, ..., 14\_999\_999\]
* We measure **total execution time** to compare efficiency.
# External Libraries Policy:
* **All external libraries are allowed** as long as they **aren't runtime-related** (i.e., no JIT compilers or VM optimizations).
* **For Rust**, I’ve tested this using **Tokio, async-std, and smol**.
* **For Go**, I’ve experimented with **goroutines and worker pools**.
* **For Python, I need guidance!**
# My Python Questions:
* Should I go for **vectorized solutions** (NumPy, Numba)?
* Would **Cython** or a different low-level optimization be a better approach?
* What’s the best async library to use? Should I stick with **asyncio** or use something like **Trio or Curio**?
*
/r/Python
https://redd.it/1jhn4fo
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Is Flask still a good choice in 2025?
I love how simple and flexible Flask is, and I don’t really need the async speed boost that FastAPI offers (yet). But I’m curious:
Are people still choosing Flask for new projects?
Has anyone switched from Flask to FastAPI or something else? Was it worth it?
For those still sticking with Flask, what keeps you coming back?
/r/flask
https://redd.it/1jht6e5
I love how simple and flexible Flask is, and I don’t really need the async speed boost that FastAPI offers (yet). But I’m curious:
Are people still choosing Flask for new projects?
Has anyone switched from Flask to FastAPI or something else? Was it worth it?
For those still sticking with Flask, what keeps you coming back?
/r/flask
https://redd.it/1jht6e5
Reddit
From the flask community on Reddit: Is Flask still a good choice in 2025?
Posted by Individual-Welder370 - 68 votes and 83 comments
Space Science Tutorial: Saturn's ring system
Hey everyone,
maybe you have already read / heard it: for anyone who'd like to see Saturn's rings with their telescope I have bad news...
1. Saturn is currently too close to the Sun to observe it safely
2. Saturn's ring system is currently on an "edge-on-view"; which means that they vanish for a few weeks. (The maximum ring appearance is in 2033)
I just created a small Python tutorial on how to compute this opening-angle between us and the ring system using the library astropy. Feel free to take the code and adapt it for your educational needs :-).
GitHub Link
YouTube Link
Thomas
/r/Python
https://redd.it/1ji0etq
Hey everyone,
maybe you have already read / heard it: for anyone who'd like to see Saturn's rings with their telescope I have bad news...
1. Saturn is currently too close to the Sun to observe it safely
2. Saturn's ring system is currently on an "edge-on-view"; which means that they vanish for a few weeks. (The maximum ring appearance is in 2033)
I just created a small Python tutorial on how to compute this opening-angle between us and the ring system using the library astropy. Feel free to take the code and adapt it for your educational needs :-).
GitHub Link
YouTube Link
Thomas
/r/Python
https://redd.it/1ji0etq
GitHub
Astroniz-YT-Tutorials/CompressedCosmos/CompressedCosmos_Saturns_Ring_astropy.ipynb at main · ThomasAlbin/Astroniz-YT-Tutorials
Repository of my Space Science with Python YT tutorial series - ThomasAlbin/Astroniz-YT-Tutorials
As a C programmer, what blew your mind when you first learned Python?
As a C programmer, what blew your mind when you first learned Python?
In C you have to write lots of functionality before you can even get started – if you need a dictionary, you have to write it yourself. C++ has fixed this by having a nice standard library, but for C you are on your own.
/r/Python
https://redd.it/1ji1oly
As a C programmer, what blew your mind when you first learned Python?
In C you have to write lots of functionality before you can even get started – if you need a dictionary, you have to write it yourself. C++ has fixed this by having a nice standard library, but for C you are on your own.
/r/Python
https://redd.it/1ji1oly
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Announcing Kreuzberg V3.0.0
Hi Peeps,
I'm happy to announce the release (a few minutes back) of Kreuzberg v3.0. I've been working on the PR for this for several weeks. You can see the PR itself here and the changelog here.
For those unfamiliar- Kreuzberg is a library that offers simple, lightweight, and relatively performant CPU-based text extraction.
This new release makes massive internal changes. The entire architecture has been reworked to allow users to create their own extractors and make it extensible.
## Enhancements:
- Added support for multiple OCR backends, including PaddleOCR, EasyOCR and making Tesseract OCR optional.
- Added support for having no OCR backend (maybe you don't need it?)
- Added support for custom extractor.
- Added support for overriding built-in extractors.
- Added support for post-processing hooks
- Added support for validation hooks
- Added PDF metadata extraction using Playa-PDF
- Added optional chunking
And, of course - added documentation site.
## Target Audience
The library is helpful for anyone who needs to extract text from various document formats. Its primary audience is developers who are building RAG applications or LLM agents.
## Comparison
There are many alternatives. I won't try to be anywhere near comprehensive
/r/Python
https://redd.it/1ji2x08
Hi Peeps,
I'm happy to announce the release (a few minutes back) of Kreuzberg v3.0. I've been working on the PR for this for several weeks. You can see the PR itself here and the changelog here.
For those unfamiliar- Kreuzberg is a library that offers simple, lightweight, and relatively performant CPU-based text extraction.
This new release makes massive internal changes. The entire architecture has been reworked to allow users to create their own extractors and make it extensible.
## Enhancements:
- Added support for multiple OCR backends, including PaddleOCR, EasyOCR and making Tesseract OCR optional.
- Added support for having no OCR backend (maybe you don't need it?)
- Added support for custom extractor.
- Added support for overriding built-in extractors.
- Added support for post-processing hooks
- Added support for validation hooks
- Added PDF metadata extraction using Playa-PDF
- Added optional chunking
And, of course - added documentation site.
## Target Audience
The library is helpful for anyone who needs to extract text from various document formats. Its primary audience is developers who are building RAG applications or LLM agents.
## Comparison
There are many alternatives. I won't try to be anywhere near comprehensive
/r/Python
https://redd.it/1ji2x08
GitHub
feat: v3.0 by Goldziher · Pull Request #27 · Goldziher/kreuzberg
This PR implements the roadmap (see discussion).
Changed ExtractionResults from NamedTuple to TypedDict (breaking change)
Rework internals to allow extensibility by changing to a class-based arc...
Changed ExtractionResults from NamedTuple to TypedDict (breaking change)
Rework internals to allow extensibility by changing to a class-based arc...
How to Manage Django Migrations in a Production Environment?
I'm a bit confused about how to manage Django migrations in a production environment. In one of my projects, I am the only developer, and I am pushing the migration files to production. However, I want to know how to manage this process when multiple people are working on the same project and modifying the schema. Specifically, what happens if multiple developers are modifying the same models? How should we handle these scenarios effectively?
/r/django
https://redd.it/1ji5mmw
I'm a bit confused about how to manage Django migrations in a production environment. In one of my projects, I am the only developer, and I am pushing the migration files to production. However, I want to know how to manage this process when multiple people are working on the same project and modifying the schema. Specifically, what happens if multiple developers are modifying the same models? How should we handle these scenarios effectively?
/r/django
https://redd.it/1ji5mmw
Reddit
From the django community on Reddit
Explore this post and more from the django 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/1jidmi9
# 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/1jidmi9
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…
Django allauth social auth and JWT
Hi All, Quick question, considering my front end in react only uses JWT to communicate with the backend DRF, how do I get the JWT token that requires a username/pass when I do social login with Google for example? Thanks! G. P.S Using allauth in headless version.
/r/django
https://redd.it/1jiay4j
Hi All, Quick question, considering my front end in react only uses JWT to communicate with the backend DRF, how do I get the JWT token that requires a username/pass when I do social login with Google for example? Thanks! G. P.S Using allauth in headless version.
/r/django
https://redd.it/1jiay4j
Reddit
From the django community on Reddit
Explore this post and more from the django community
safe-result: A Rust-inspired Result type for Python to handle errors without try/catch
Hi Peeps,
I've just released safe-result, a library inspired by Rust's Result pattern for more explicit error handling.
## Target Audience
Anybody.
## Comparison
Using
1. Explicitness: Forces error handling to be explicit rather than implicit, preventing overlooked exceptions
2. Function Composition: Makes it easier to compose functions that might fail without nested try/except blocks
3. Predictable Control Flow: Code execution becomes more predictable without exception-based control flow jumps
4. Error Propagation: Simplifies error propagation through call stacks without complex exception handling chains
5. Traceback Preservation: Automatically captures and preserves tracebacks while allowing normal control flow
6. Separation of Concerns: Cleanly separates error handling logic from business logic
7. Testing: Makes testing error conditions more straightforward since errors are just values
## Examples
### Explicitness
Traditional approach:
def processdata(data):
# This might raise various exceptions, but it's not obvious from the signature
processed = data.process()
return processed
# Caller might forget to handle exceptions
result = processdata(data) # Could raise exceptions!
With
@Result.safe
/r/Python
https://redd.it/1jimiz0
Hi Peeps,
I've just released safe-result, a library inspired by Rust's Result pattern for more explicit error handling.
## Target Audience
Anybody.
## Comparison
Using
safe_result offers several benefits over traditional try/catch exception handling:1. Explicitness: Forces error handling to be explicit rather than implicit, preventing overlooked exceptions
2. Function Composition: Makes it easier to compose functions that might fail without nested try/except blocks
3. Predictable Control Flow: Code execution becomes more predictable without exception-based control flow jumps
4. Error Propagation: Simplifies error propagation through call stacks without complex exception handling chains
5. Traceback Preservation: Automatically captures and preserves tracebacks while allowing normal control flow
6. Separation of Concerns: Cleanly separates error handling logic from business logic
7. Testing: Makes testing error conditions more straightforward since errors are just values
## Examples
### Explicitness
Traditional approach:
def processdata(data):
# This might raise various exceptions, but it's not obvious from the signature
processed = data.process()
return processed
# Caller might forget to handle exceptions
result = processdata(data) # Could raise exceptions!
With
safe_result:@Result.safe
/r/Python
https://redd.it/1jimiz0
GitHub
GitHub - overflowy/safe-result: A Python package for elegant error handling, inspired by Rust's Result type.
A Python package for elegant error handling, inspired by Rust's Result type. - overflowy/safe-result
Wireup 1.0 Released - Performant, concise and type-safe Dependency Injection for Modern Python 🚀
Hey r/Python! I wanted to share **Wireup** a dependency injection library that just hit 1.0.
What is it: A. After working with Python, I found existing solutions either too complex or having too much boilerplate. Wireup aims to address that.
# Why Wireup?
* 🔍 **Clean and intuitive syntax** \- Built with modern Python typing in mind
* 🎯 **Early error detection** \- Catches configuration issues at startup, not runtime
* 🔄 **Flexible lifetimes** \- Singleton, scoped, and transient services
* ⚡ **Async support** \- First-class async/await and generator support
* 🔌 **Framework integrations** \- Works with FastAPI, Django, and Flask out of the box
* 🧪 **Testing-friendly** \- No monkey patching, easy dependency substitution
* 🚀 **Fast** \- DI should not be the bottleneck in your application but it doesn't have to be slow either. Wireup outperforms Fastapi Depends by about 55% and Dependency Injector by about 35%. See [Benchmark code](https://github.com/maldoinc/wireup/tree/benchmarks/benchmarks).
# Features
# ✨ Simple & Type-Safe DI
Inject services and configuration using a clean and intuitive syntax.
@service
class Database:
pass
@service
class UserService:
def __init__(self, db: Database) ->
/r/Python
https://redd.it/1jimec9
Hey r/Python! I wanted to share **Wireup** a dependency injection library that just hit 1.0.
What is it: A. After working with Python, I found existing solutions either too complex or having too much boilerplate. Wireup aims to address that.
# Why Wireup?
* 🔍 **Clean and intuitive syntax** \- Built with modern Python typing in mind
* 🎯 **Early error detection** \- Catches configuration issues at startup, not runtime
* 🔄 **Flexible lifetimes** \- Singleton, scoped, and transient services
* ⚡ **Async support** \- First-class async/await and generator support
* 🔌 **Framework integrations** \- Works with FastAPI, Django, and Flask out of the box
* 🧪 **Testing-friendly** \- No monkey patching, easy dependency substitution
* 🚀 **Fast** \- DI should not be the bottleneck in your application but it doesn't have to be slow either. Wireup outperforms Fastapi Depends by about 55% and Dependency Injector by about 35%. See [Benchmark code](https://github.com/maldoinc/wireup/tree/benchmarks/benchmarks).
# Features
# ✨ Simple & Type-Safe DI
Inject services and configuration using a clean and intuitive syntax.
@service
class Database:
pass
@service
class UserService:
def __init__(self, db: Database) ->
/r/Python
https://redd.it/1jimec9
GitHub
wireup/benchmarks at benchmarks · maldoinc/wireup
Performant, concise, and easy-to-use dependency injection container for Python 3.8+. - maldoinc/wireup
Struggling with Django Deployment: WS, Celery, Docker, and Azure – Need Guidance!
Hey everyone,
I’m trying to deploy my Django backend, but this one is way more complex than what I’m used to. I’ve deployed DRF with a PostgreSQL DB and Redis cache on Azure Web App Service before, but this time, I’ve hit a lot of roadblocks.
Here’s the stack I’m dealing with:
* **Django + DRF**
* **Django Channels (WebSockets)** – I initially set up WS, then stumbled upon WSS, and things got messy. Eventually, it just didn’t work.
* **Celery + Redis** – Handling background tasks like email sending.
* **Celery Beat** – For scheduling tasks.
* **Dockerized app** – Everything is containerized.
I attempted deploying on **Azure Kubernetes Service (AKS)**, and it worked—*but* I did everything manually (manifests, deployments, etc.), and I *need* a proper CI/CD pipeline. Plus, AKS is **costly**, and I’m wondering if there’s a better approach.
So my main questions are:
1. **What’s the best way to deploy this setup on Azure with a CI/CD pipeline?**
2. **Should I stick with AKS, or is there a more cost-effective alternative that supports WS & Celery?**
3. **Any recommendations on handling WSS properly in production?**
Would love to hear from anyone who’s deployed something similar! Any guidance or resources would be super helpful.
Thanks in advance!
/r/djangolearning
https://redd.it/1jipyxu
Hey everyone,
I’m trying to deploy my Django backend, but this one is way more complex than what I’m used to. I’ve deployed DRF with a PostgreSQL DB and Redis cache on Azure Web App Service before, but this time, I’ve hit a lot of roadblocks.
Here’s the stack I’m dealing with:
* **Django + DRF**
* **Django Channels (WebSockets)** – I initially set up WS, then stumbled upon WSS, and things got messy. Eventually, it just didn’t work.
* **Celery + Redis** – Handling background tasks like email sending.
* **Celery Beat** – For scheduling tasks.
* **Dockerized app** – Everything is containerized.
I attempted deploying on **Azure Kubernetes Service (AKS)**, and it worked—*but* I did everything manually (manifests, deployments, etc.), and I *need* a proper CI/CD pipeline. Plus, AKS is **costly**, and I’m wondering if there’s a better approach.
So my main questions are:
1. **What’s the best way to deploy this setup on Azure with a CI/CD pipeline?**
2. **Should I stick with AKS, or is there a more cost-effective alternative that supports WS & Celery?**
3. **Any recommendations on handling WSS properly in production?**
Would love to hear from anyone who’s deployed something similar! Any guidance or resources would be super helpful.
Thanks in advance!
/r/djangolearning
https://redd.it/1jipyxu
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Cocommit: A Copilot for Git commit command
I wanted to share a project I worked on during my weather-non-cooperating vacation: a copilot for `git commit`.
# What My Project Does
This command-line application enhances last commit message (i.e., the current `HEAD`) using an LLM. It provides:
* A summary of the commit message quality.
* An analysis of its strengths and weaknesses.
* A suggested commit message for an optional amend.
The application uses LangChain to interact with various LLMs. Personally, I use Claude 3.7 via AWS Bedrock and OpenAI's GPT-4o.
The source code: [GitHub Repository](https://github.com/andrewromanenco/cocommit). And it is available with `pip install cocommit`.
# Target Audience
This tool is designed for software engineers. Personally, I run it after every commit I make, even when using other copilots to assist with code generation.
# Comparison
[Aider](https://github.com/Aider-AI/aider) is a full command-line copilot, similar in intent to GitHub Copilot and other AI-powered coding assistants.
Cocommit, however, follows a different paradigm: it operates exclusively on Git commits. By design, Git commits contain valuable context—both in terms of actual code changes and the intent behind them—making them a rich source of information for improving code quality.
/r/Python
https://redd.it/1jiplpp
I wanted to share a project I worked on during my weather-non-cooperating vacation: a copilot for `git commit`.
# What My Project Does
This command-line application enhances last commit message (i.e., the current `HEAD`) using an LLM. It provides:
* A summary of the commit message quality.
* An analysis of its strengths and weaknesses.
* A suggested commit message for an optional amend.
The application uses LangChain to interact with various LLMs. Personally, I use Claude 3.7 via AWS Bedrock and OpenAI's GPT-4o.
The source code: [GitHub Repository](https://github.com/andrewromanenco/cocommit). And it is available with `pip install cocommit`.
# Target Audience
This tool is designed for software engineers. Personally, I run it after every commit I make, even when using other copilots to assist with code generation.
# Comparison
[Aider](https://github.com/Aider-AI/aider) is a full command-line copilot, similar in intent to GitHub Copilot and other AI-powered coding assistants.
Cocommit, however, follows a different paradigm: it operates exclusively on Git commits. By design, Git commits contain valuable context—both in terms of actual code changes and the intent behind them—making them a rich source of information for improving code quality.
/r/Python
https://redd.it/1jiplpp
GitHub
GitHub - andrewromanenco/cocommit: Cocommit is a command-line tool that works with your HEAD commit and leverages an LLM of your…
Cocommit is a command-line tool that works with your HEAD commit and leverages an LLM of your choice to enhance commit quality. - andrewromanenco/cocommit
Django Devs! Help Me Build OctopusDash – A Better Django Dashboard
Yo devs! I’m working on **OctopusDash**, a modern, lightweight Django admin panel alternative that actually looks good and makes your life easier. It’s built with **TailwindCSS** and has some cool features like **drag-and-drop M2M fields, custom actions, analytics, and better filtering.**
💡 **But here’s the deal:** It’s still in development, and I need some extra hands to make it stable and production-ready. If you’re into Django, open-source projects, or just want to build something awesome, let’s do this!
# 🚧 Current Status
* Still a work in progress – **expect bugs & API changes**
* Not ready for production yet, but great for testing
* Need help with **refining features, adding JWT authentication, and making it more solid**
# ✅ Cool Features So Far
* **Modern TailwindCSS UI** (finally, an admin panel that looks good 😅)
* **One-line model registration**
* **Drag & Drop M2M field management**
* **Advanced search & filtering**
* **Custom actions & pages**
* **Built-in analytics & widgets**
* **Better permissions & access control**
🚀 **What’s Coming Next?**
* **JWT authentication & API views**
* **More customization & performance tweaks**
# 📸 Sneak Peek
https://preview.redd.it/eeijgz33okre1.png?width=1920&format=png&auto=webp&s=1230270b5f475b7af64bd0e0780d502274771a75
# 👨💻 Want to Help?
* Check out the GitHub repo **(https://github.com/husseinnaeemsec/octopus-dash)**
* Test it out, break it, report issues, and suggest cool features
* Send PRs if you’re up for it!
Let’s build
/r/django
https://redd.it/1jmg7g8
Yo devs! I’m working on **OctopusDash**, a modern, lightweight Django admin panel alternative that actually looks good and makes your life easier. It’s built with **TailwindCSS** and has some cool features like **drag-and-drop M2M fields, custom actions, analytics, and better filtering.**
💡 **But here’s the deal:** It’s still in development, and I need some extra hands to make it stable and production-ready. If you’re into Django, open-source projects, or just want to build something awesome, let’s do this!
# 🚧 Current Status
* Still a work in progress – **expect bugs & API changes**
* Not ready for production yet, but great for testing
* Need help with **refining features, adding JWT authentication, and making it more solid**
# ✅ Cool Features So Far
* **Modern TailwindCSS UI** (finally, an admin panel that looks good 😅)
* **One-line model registration**
* **Drag & Drop M2M field management**
* **Advanced search & filtering**
* **Custom actions & pages**
* **Built-in analytics & widgets**
* **Better permissions & access control**
🚀 **What’s Coming Next?**
* **JWT authentication & API views**
* **More customization & performance tweaks**
# 📸 Sneak Peek
https://preview.redd.it/eeijgz33okre1.png?width=1920&format=png&auto=webp&s=1230270b5f475b7af64bd0e0780d502274771a75
# 👨💻 Want to Help?
* Check out the GitHub repo **(https://github.com/husseinnaeemsec/octopus-dash)**
* Test it out, break it, report issues, and suggest cool features
* Send PRs if you’re up for it!
Let’s build
/r/django
https://redd.it/1jmg7g8
React with flask?
Hello!
I really like using flask for personal projects, my question is, is it still common to be writing your own custom html and JavaScript? It seems like most web frameworks now involve using react.
Is there ever a situation where it makes more sense to write your own custom JavaScript with html? Or will that never be as good as using React?
Thanks!
/r/flask
https://redd.it/1jmogyk
Hello!
I really like using flask for personal projects, my question is, is it still common to be writing your own custom html and JavaScript? It seems like most web frameworks now involve using react.
Is there ever a situation where it makes more sense to write your own custom JavaScript with html? Or will that never be as good as using React?
Thanks!
/r/flask
https://redd.it/1jmogyk
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Dash plotly Deployment
Hi People. Im new to flask and my area of expertise is data analytics.Recently i had been asked to recreate a Power BI report in dash plotly and im almost done with it. Now i need to deploy the same for end users (approx 200 users will be using it). I just wanted to ask what are suitable deployment options for this. I want something budget friendly.
/r/flask
https://redd.it/1jmmp5q
Hi People. Im new to flask and my area of expertise is data analytics.Recently i had been asked to recreate a Power BI report in dash plotly and im almost done with it. Now i need to deploy the same for end users (approx 200 users will be using it). I just wanted to ask what are suitable deployment options for this. I want something budget friendly.
/r/flask
https://redd.it/1jmmp5q
Reddit
From the flask community on Reddit
Explore this post and more from the flask community