Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
Fun project UV scripts, but for functions.

What My Project Does

I recently created **uv-func**, a small tool that brings the dependency-isolation concept of tools like uv scripts down to the level of individual Python functions. Instead of managing dependencies per module or script, uv-func lets you run discrete functions in a contained environment so they can run, communicate with each other, and manage their dependencies cleanly and separately.

Target Audience

Python developers working with scripts or functions that need to be isolated or decoupled in terms of dependencies.
Hobbyists or maintainers who appreciate minimal tooling (uv-func has only three dependencies: cloudpickle, portalocker and rich).

Note: This isn’t a full framework for large applications — it’s intended to be lightweight and easy to embed or integrate as needed.

Comparison

There are other tools that handle dependency isolation or function-level execution (for example, using containers, virtual environments per script, or Function-as-a-Service frameworks like Ray, etc...).

What sets uv-func apart in my opinion:

1. Minimal footprint: only three external dependencies.
2. Focused on the function-level rather than full modules or services.
3. Lightweight and easy to drop into existing Python codebases without heavy platform or infrastructure requirements.

I see many AWS lambdas using requirements.txt then needing to run `pip install` somewhere in their app or infra code, and

/r/Python
https://redd.it/1oavf1l
Trio - Should I move to a more popular async framework?

I'm new-ish to python but come from a systems and embedded programming background and want to use python and pytest to automate testing with IoT devices through BLE, serial or other transports in the future. I started prototyping with Trio as that was the library I saw being used in a reference pytest plugin, I checked out Trio and was very pleased on the emphasis of the concept of structured concurrency (Swift has this concept with the same name in-grained so I knew what it meant and love it) and started writing a prototype to get something working.

It was quick for me to notice the lack of IO library that support Trio natively and this was bummer at first but no big deal as I could manage to find a small wrapper library for serial communication with Trio and wrote my own. However now that I'm having to prototype the BLE side of things I've found zero library, examples or material that uses Trio. Bleak which is the prime library I see pop-up when I look for BLE and python is written with the asyncio backend. I haven't done a lot of research into asyncio or anyio

/r/Python
https://redd.it/1oah08y
Is it possible to get a referral (india)?

I am 29F have 11 months of experience as Django developer and I'm still working but I need to switch the company for some reason
Is it possible to get a referral?

/r/django
https://redd.it/1oafscc
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!

# Weekly Thread: Professional Use, Jobs, and Education 🏢

Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.

---

## How it Works:

1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.

---

## Guidelines:

- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.

---

## Example Topics:

1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?

---

Let's help each other grow in our careers and education. Happy discussing! 🌟

/r/Python
https://redd.it/1odomzr
Flask SaaS Starter with Stripe + PayPal + email automation

I was trying to build a product that sadly didn't take of but realized the infrastructure was solid through my iterations of my SaaS. It is tried, tested and currently used in production for clarq.ai but I thought I would drop it to Gumroad and see if others found it as a shortcut to save development for back end.

The starter template includes

\- stripe subscriptions with webhooks

\- aypal integration

\- mailgun email automation

\- PostgreSQL user managment

\- Admin dash

\- production-ready deployment config

800+ lines of clean documented Python. Selling at gum road for $79 (MIT license) and would love some feedback from the flask community. Everyone thinks they have a great idea until you find out you don't. Always striving to create and love Reddit to keep me grounded.



/r/flask
https://redd.it/1oe2tcw
Maintained fork of filterpy (Bayesian/Kalman filters)

# What My Project Does

I forked filterpy and got it working with modern Python tooling. It's a library for Kalman filters and other Bayesian filtering algorithms - basically state estimation stuff for robotics, tracking, navigation etc.

The fork (bayesian\_filters) has all the original filterpy functionality but with proper packaging, tests, and docs.

# Target Audience

Anyone who needs Bayesian filtering in Python - whether that's production systems, research, or learning. It's not a toy project - filterpy is/was used all over the place in robotics and computer vision.

# Comparison

The original filterpy hasn't been updated since 2018 and broke with newer setuptools versions. This caused us (and apparently many others) real problems in production.

Since the original seems abandoned, I cleaned it up:

Fixed the setuptools incompatibility
Added proper tests
Updated to modern Python packaging
Actually maintaining it

You can install it with:

uv pip install bayesian-filters

GitHub: https://github.com/GeorgePearse/bayesian\_filters

This should help anyone else who's been stuck with the broken original package. It's one of those libraries that's simultaneously everywhere and completely unmaintained.

Literally just aiming to be a steward, I work in object detection so I might setup some benchmarks to test how well they improve object tracking (which has been my main use-case so

/r/Python
https://redd.it/1oe6mu7
Autoreload

I'm on ipython 9.4. I can't really upgrade for reasons I won't go into. Anyway, autoreload used to be great. I could debug by editing files in real time and retrying in my ipython session. Somewhere along the way it became much less usable. For example, if I put a pdb breakpoint someplace, it doesn't seem to know where it is in the file and variables aren't visible that should be at that point. Is this a known issue or just the new normal? Or maybe newer ipython versions already fixed it?

/r/IPython
https://redd.it/1obo5jx
Full-Stack Project Real-Time Trading Boilerplate – Django, Celery, React + Alpaca API

Hey folks,


I am subscribed only to ChatGPT Plus and GitHub Copilot, using mainly VS Code Copilot, Codex CLI, and the free Gemini CLI for this project.

I built an open-source full-stack trading boilerplate that utilizes the Alpaca API for both historical and real-time market data.


The goal is to provide developers with a plug-and-play base for building custom trading dashboards, strategy engines, and backtesting tools without requiring expensive market data feeds.

🔗 GitHub: https://github.com/naveedkhan1998/alpaca-main
🌐 Live Demo (free-tier hosting → a bit slow): https://alpaca.mnaveedk.com/

Tech Stack:

Backend: Django + DRF, Celery workers for background tasks.
Frontend: React, Redux Toolkit, Shadcn.
Real-Time: WebSockets for live price updates.
Data: Fetches 2 years of historical 1-minute candles \+ streams real-time updates.
Aggregation: Auto-generates higher timeframes (5m, 15m, 30m, 1h, 4h, 1d) in real time.

Features:

Add symbols to your watchlist (up to 30 with Alpaca free tier).
Historical + real-time sync.
Strategy-friendly data structure for easy backtesting & live trading.

If you’re into trading dashboards, real-time apps, or full-stack WebSocket projects, I would love your thoughts on the architecture, performance, or UI.
Forks & PRs welcome!

https://i.redd.it/0tkehwz8lvwf1.gif

https://i.redd.it/cclc6xz8lvwf1.gif

https://i.redd.it/uaf2n009lvwf1.gif



/r/django
https://redd.it/1oe5i4n
Best sources to learn Flask, Flask Restful API

i came from django, i have like 5 days to learn everything about Flask for work. Any recommendation for sources to use (in order).

/r/flask
https://redd.it/1occige
Hey I am following this tutorial but I have a question "https://blog.miguelgrinberg.com/post/accept-credit-card-payments-in-flask-with-stripe-checkout". FYI I am not in production yet. Are there any better ways to run a webhook in python and stripe in production and dev mode that are free?

In the link they mention ngrok which I believe cost money and or the Stripe CLI which seems cumbersome and I am not sure if you can use it in production and it doesn't explain how to use the stripe cli. Does anyone have a better suggestion?

/r/flask
https://redd.it/1obmxw4
Flask Fundus Image Manager app

Hey all
I am a doctor with no training in programming but am technically oriented. But The current AI coding agents have democratised this aspect.

So with the help of ChatGPT 20$ plan, QWEN, Gemini free tier and now GLM 4.6 i have developed this I believe a fairly complex project that allows ingestion of retinal images and then after anonymisation, these get allocated for grading in masked manner while hiding PII. There is an arbitrator workflow as well as a post-review workflow. Additionally,it accepts uploads of pregraded images as well as AI model grades and all of them get saved for you to analyse to your hears extent. I have also built in workflow for cross disease grading beyond original disease purpose of an image.

https://github.com/drguptavivek/fundusimgxtract

It leverages Flask, SQLAlchemy, flask Login, Limiter, Jinja, PuMuPDF, PYXL, CSRF, etc etc

Fundus Image Manager
A comprehensive system for an eye hospital to manage eye images. It facilitates the generation of curated datasets for training and validating Artificial Intelligence (AI) models targeted at detecting Glaucoma, Diabetic Retinopathy (DR), and Age-related Macular Degeneration (AMD). Has specific workflows for Remedio FOP zip files that get downlaoded from the remedio dashboard.

Please go through and provide feedback

/r/flask
https://redd.it/1oayi6m
QuickScale v0.60.0 - Deploy Django to Railway in 5 minutes with one command

Just shipped QuickScale v0.60.0, and I'm excited about the deployment automation we built.

What's New

One command handles the entire deployment workflow:

quickscale deploy railway

This automatically:

Provisions PostgreSQL database \- No manual Railway dashboard clicking
Generates SECRET_KEY \- Uses Django's secure random generation
Configures environment \- Interactive prompts for ALLOWED\_HOSTS, DEBUG, etc.
Runs migrations \- Executes `manage.py` migrate on Railway
Collects static files \- Handles `collectstatic` for production
Sets up HTTPS \- Railway auto-provisions SSL certificates

The entire process takes under 5 minutes.

# Quick Start

# Install QuickScale
pip install quickscale

# Create new project
quickscale init my-saas-app
cd my-saas-app

# Deploy to Railway
quickscale deploy railway
The CLI guides you through the process with clear prompts.

# Looking for Feedback, would love to hear yout thoughts.

GitHub: github.com/Experto-AI/quickscale

Railway deployment docs: Railway Guide

/r/django
https://redd.it/1oea4p0
iommi 7.19.0 released

New hero page: https://iommi.rocks/

- A new system for advanced layouts for forms and tables. Example: https://docs.iommi.rocks/cookbook_forms.html#how-do-i-make-complex-layouts-for-forms
- A manually drag-and-drop reorderable feature for EditTable
- Tables will automatically pick up sort order from your queryset

And a bunch of other minor features and bug fixes of course.

/r/django
https://redd.it/1oeq25m
What are the long term goal of tasks in Django 6?

I see Django 6 is adding tasks similar to celery and wonder if the long term goal here is to replace celery with feature parity or simply act as a "celery lite"?

/r/django
https://redd.it/1oevtoc
Asking the impossible, may be not!

So currently, If someone is going with django, they can either do 1 of the 2 and never both. If they use django fullstack then they have to duplicate the code to provide api endpoints for handhelds like mobile. If they use it just for api to be consumed by mobile apps, then you cant just use the same api with django templates for browsers.
May be someday in the future, django 7 may be, where one can use django to write an api and use the api with django templates without having to use a separate front end. I wanna use django to serve both the browser and apps on mobiles which need api endpoints.

/r/django
https://redd.it/1oewzv4
How Do You Structure Large Django Projects? Tips for Scalability and Maintainability

Hi everyone!

I’ve been working with Django for a while, and as my projects grow, I’m realizing that structuring apps and managing dependencies gets tricky. I’d love to hear how you all approach:

* Organizing apps and reusable components
* Handling complex models and relationships
* Managing settings for multiple environments (dev, staging, production)
* Using Django signals or middleware effectively without creating spaghetti code
* Any patterns or best practices you swear by

Also, if you have experience with Django in bigger teams or production-scale projects, I’d love to hear about common pitfalls and lessons learned.

Let’s share some tips for keeping Django projects clean, scalable, and maintainable!

/r/djangolearning
https://redd.it/1oeoden
Is Django dying with time

So, these days most companies use FASTAPI to build AI apps. So, what is the points of spending time mastering Django? Should I shift towards FASTAPI?

/r/djangolearning
https://redd.it/1oebpr2
Help with form creation

Hello Crispy Pythonians with Nutella fingers, I need your feedback on what is the best practice to create a form and view that needs to ask for feedback about our products to the user.

I have 2 models containing fields that needs to be filled. 1 model's fields, needs to be filled just once, while the other one needs to be filled once for each category of product.
Example:
Model1 = general feedback
Model 2 = feedback for each product.

How would you set up the model/view/template and what advice would you give me?

/r/django
https://redd.it/1of2lcu
I built a production-ready Django/DRF Boilerplate with Custom User Auth, JWT, and Spectaular Docs feedback welcome!

Hey,

I spent a while cleaning up my personal project starter and decided to open-source it as drf-boilerplate. I'm sharing it because I'm tired of rewriting the same core authentication logic for every new DRF API.

What it solves:

1. The Custom User Pain: Fully configured AbstractUser model with login via either email OR username.
2. Auth Separation: Integrated djangorestframework-simplejwt with pre-built endpoints for token refresh/blacklist.
3. Deployment Headache: Settings are split into base, development, and production, all driven by django-environ for clean .env handling.
4. UX Flows: Includes models/stubs for Email Verification and Password Reset flows (the hardest parts to set up correctly).

I'd appreciate any feedback on the file structure etc.

Repo Link: https://github.com/fulanii/drf-boilerplate/

/r/djangolearning
https://redd.it/1of4a82