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
📊 Check Out djangokpi: A Work-in-Progress KPI Management Package for Django!

Hey everyone! 👋

I'm excited to share my ongoing project, **django
kpi, a Django package designed for creating, tracking, and managing Key Performance Indicators (KPIs) in your projects.

### Current Status:
While the package is still under active development and not yet ready for production use, I’m thrilled to announce that the KPI cards API is ready for preview!

### Features (WIP):
- Define Custom KPIs: Tailor KPIs to fit your project's needs.
- Track Performance Over Time: Monitor KPI evolution (in progress).
- Flexible Configuration: Easy integration into existing Django projects.
- Django Admin Support: Manage KPIs via the Django admin interface or API.

### Preview the KPI Cards:
Check out the API for KPI cards and see how it can enhance your project!

### Installation:
To install, use pip:
pip install django_kpi

Add it to your INSTALLED_APPS and include the URLs in your project!

### Contribution:
I'm looking for contributors! If you're interested, please submit a pull request or open an issue with your ideas.

Check it out on GitHub and let me know your thoughts! Any feedback is appreciated as I work to improve it!

Thanks! 😊

/r/django
https://redd.it/1maozo5
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/1mb1j12
Caching API Responses in Flask

Guys, kindly have a read about implementing simple caching in your Flask APIs. It is an easy to understand guide for a first timer.

https://flask-india.hashnode.dev/caching-api-responses-in-flask

/r/flask
https://redd.it/1maybu0
Am I doing this right?

id: "models.PositiveBigIntegerFieldint" = models.PositiveBigIntegerField(
default=intid, primarykey=True, editable=False
)

email: "models.CharFieldstr | None" = models.CharField(
maxlength=256,
unique=True,
blank=True,
null=True,
validators=(EmailValidator(message="Invalid email address"),),
)

country
code: "models.CharFieldstr | None" = models.CharField(
maxlength=2,
blank=True,
null=True,
validators=(validators.validate
countrycode,),
)
dial
code: "models.CharFieldstr |

/r/djangolearning
[https://redd.it/1marbhd
robinzhon: a library for fast and concurrent S3 object downloads

What My Project Does

robinzhon is a high-performance Python library for fast, concurrent S3 object downloads. Recently at work I have faced that we need to pull a lot of files from S3 but the existing solutions are slow so I was thinking in ways to solve this and that's why I decided to create robinzhon.

The main purpose of robinzhon is to download high amounts of S3 Objects without having to do extensive manual work trying to achieve optimizations.

Target Audience
If you are using AWS S3 then this is meant for you, any dev or company that have a high s3 objects download can use it to improve their process performance

Comparison
I know that you can implement your own concurrent approach to try to improve your download speed but robinzhon can be 3 times faster even 4x if you start to increase the max_concurrent_downloads but you must be careful because AWS can start to fail due to the amount of requests.

GitHub: https://github.com/rohaquinlop/robinzhon

/r/Python
https://redd.it/1maocfk
Need Career Advice: Stuck in .NET Web Forms, Should I Switch to Python Flask?

Hi everyone,

I’ve been working at a company for the past 4 months. I was hired to work on a .NET Web Forms project, but the pace of work is extremely slow. For the last 3 months, I haven’t written any real code — I’ve just been learning about Web Forms.

The company is saying they’ll give me actual work on an ERP project starting next week, but honestly, I’m not feeling confident. I’ve been told there will be no proper mentorship or guidance, and I find ERP systems really hard to grasp.

On the other hand, I’m passionate about innovation and working with new technologies. I really enjoy Python and I’ve been considering switching over to Flask development instead, since it aligns more with what I want to do in the future.

I’m feeling a lot of stress and confusion right now. Should I stick it out with this company and the ERP/.NET stuff, or should I start focusing on Python Flask and make a shift in that direction?

Any advice from experienced developers would be really appreciated. Thanks!

\#CareerAdvice #DotNet #Python #Flask #ERP #WebForms #JuniorDeveloper #ProgrammingHelp

/r/flask
https://redd.it/1mbebbe
uvify: Turn any python repository to environment (oneliner) using uv python manager

Code: [https://github.com/avilum/uvify](https://github.com/avilum/uvify)

\*\* What my project does \*\*

uvify generates oneliners and dependencies list quickly, based on local dir / github repo.
It helps getting started with 'uv' quickly even if the maintainers did not use 'uv' python manager.

uv is the fastest pythom manager as of today.

* Helps with migration to `uv` for faster builds in CI/CD
* It works on existing projects based on: `requirements.txt`, `pyproject.toml` or [`setup.py`](http://setup.py/), recursively.
* Supports local directories.
* Supports GitHub links using [Git Ingest](https://gitingest.com/).
* It's fast!

You can even run uvify with uv.
Let's generate oneliners for a virtual environment that has `requests` installed, using PyPi or from source:

# Run on a local directory with python project
uv run --with uvify uvify . | jq

# Run on requests source code from github
uv run --with uvify uvify https://github.com/psf/requests | jq
# or:
# uv run --with uvify uvify psf/requests | jq

[
...
{
"file": "setup.py",


/r/Python
https://redd.it/1mbe67q
Be careful on suspicious projects like this

https://imgur.com/a/YOR8H5e

Be careful installing or testing random stuff from the Internet. It's not only typesquatting on PyPI and supply chain atacks today.
This project has a lot of suspicious actions taken:

Providing binary blobs on github. NoGo!
Telling you something like you can check the DLL files before using. AV software can't always detect freshly created malicious executables.
Announcing a CPP project like it's made in Python itself. But has only a wrapper layer.
Announcing benchmarks which look too fantastic.
Deleting and editing his comments on reddit.
Insults during discussions in the comments.
Obvious AI usage. Emojis everywhere! Coincidently learned programming since Chat-GPT exists.
Doing noobish mistakes in Python code a CPP programmer should be aware of. Like printing errors to STDOUT.


I haven't checked the DLL files. The project may be harmless. This warning still applies to suspicious projects. Take care!

/r/Python
https://redd.it/1mbopcc
Project recommendations

I recently started learning Flask and have now successfully created a website for films with information about actors and films.

I understand flask well, i.e. how to pass data to flask with Python to fill the website with the data.

I want to become more professional and deepen my knowledge of Flask. Therefore, I'm asking what ideas you have for Flask web development. Thanks.

/r/flask
https://redd.it/1mbffnv
I've created a lightweight tool called "venv-stack" to make it easier to deal with PEP 668

Hey folks,

I just released a small tool called venv-stack that helps manage Python virtual environments in a more modular and disk-efficient way (without duplicating libraries), especially in the context of PEP 668, where messing with system or user-wide packages is discouraged.

[https://github.com/ignis-sec/venv-stack](https://github.com/ignis-sec/venv-stack)

[https://pypi.org/project/venv-stack/](https://pypi.org/project/venv-stack/)

# Problem

* PEP 668 makes it hard to install packages globally or system-wide-- you’re encouraged to use virtualenvs for everything.
* But heavy packages (like torch, opencv, etc.) get installed into every single project, wasting time and tons of disk space. I realize that pip caches the downloaded wheels which helps a little, but it is still annoying to have gb's of virtual environments for every project that uses these large dependencies.
* So, your options often boil down to:
* Ignoring PEP 668 all-together and using --break-system-packages for everything
* Have a node\_modules-esque problem with python.

# What My Project Does

Here is how layered virtual environments work instead:

1. You create a set of base virtual environments which get placed in \~/.venv-stack/
2. For example, you can have a virtual environment with your ML dependencies (torch, opencv, etc) and a virtual environment with all the rest of your non-system packages. You can create these base layers like this: `venv-stack base

/r/Python
https://redd.it/1mbj5ph
FastLaunchAPI – A production-ready FastAPI starter with auth, Stripe, background jobs, and more

What My Project Does
FastLaunchAPI is a full FastAPI starter kit that helps you build and launch backends quickly. It comes with:

JWT authentication (email verification and social login)
Stripe integration for subscriptions and webhooks
PostgreSQL with SQLAlchemy and Alembic
Celery for background tasks
Email support with SMTP and HTML templates
Pytest setup for testing
Auto-generated API docs
Optional LangChain/OpenAI integration if needed

It’s structured for real-world use and takes about 10 minutes to set up.

Target Audience
This is for developers working on production projects like SaaS apps, APIs, and internal tools. It’s not a learning resource or tutorial but a ready-to-use foundation. The project is paid and closed source, but includes full documentation and lifetime access.

Comparison
Many FastAPI templates are either very basic or overly complex. This one tries to stay practical and clean while covering the features most apps need. It's based on the open-source fastapi-quick-template and adds payments, background jobs, email, and other tools on top. This template was also build by me and gained 30 organic stars through GitHub without being shared.

Happy to hear any thoughts or suggestions.

/r/Python
https://redd.it/1mbvb6l
Learning Django in 2025 with no CS degree, can I actually get hired?

Hey everyone, I just started learning the Django framework. I don’t have an academic background in programming, I learned from YouTube. Is it actually possible to find jobs as a Django developer in my situation, or is it just YouTube nonsense?

/r/django
https://redd.it/1mbx53q
Django Packages

I recently found out about Django Unfold and now i am going to use it for every Project.

What are some other Packages for Django and DEF that are standards in your Projects and you would recommend?

/r/django
https://redd.it/1mb8yi1
Tuesday Daily Thread: Advanced questions

# Weekly Wednesday Thread: Advanced Questions 🐍

Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.

## How it Works:

1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.

## Guidelines:

* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.

## Recommended Resources:

* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.

## Example Questions:

1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the

/r/Python
https://redd.it/1mbwkux
What motivates you to contribute to open-source projects?

I've been wondering that most people start contributing from the age of 18-19 and many keep contributing for life. What's your biggest reason for

1. Making your 1st contribution
2. Keep contributing throughout your life.

Given that financial consideration is one of the least important aspect, I want to see what unique drives people have.

Also, would love to know more in this survey: https://form.typeform.com/to/Duc3EN8k
Please participate if you wish to, takes about 5 minutes.

/r/django
https://redd.it/1mbnw5a
How do you guys get jobs?

Hi everyone,

I'm reaching out because I'm having a tough time landing a job in web development, and it's starting to feel pretty discouraging.

For the past two years, I've been working on personal projects and have become quite confident with Django, setting up REST APIs, and of course, Python in general. I also have some front-end experience mostly using Django template but I'm currently learning Angular to broaden my skill set.

I left my last job and am now trying to switch careers into web development full-time. Despite all the work I've done and the skills I've built, I'm finding it extremely difficult to even get interviews, let alone land a job.

If anyone has advice on how to break through, improve my job search, or better present my experience, I'd really appreciate it. Thanks in advance!

/r/django
https://redd.it/1mbu4qx
Flask for AI Web App – When to Use Class-Based Views? Do I Need Flask-RESTX

Hi everyone, I'm new to Flask and currently working on an AI-based web application. It's a complete portal with role-based access control (RBAC) and real-time computer vision surveillance.

Our manager chose Flask as the backend because of its lightweight nature. I have a couple of questions:

1. How do I decide whether to use class-based views or function-based views in Flask? Are there any clear signs or guidelines?

2. Is it common practice to use Flask-RESTX (or similar REST libraries) with Flask for building APIs? Or should I stick with plain Flask routes and logic?

Would appreciate any advice or best practices from those who’ve built full-stack or AI-related apps using Flask.

Thanks in advance!

/r/flask
https://redd.it/1mc9cel
D AAAI-2026 Code Submission

Hello\~\~

I am just wondering how much importance code submission has for the decision making and review. and are you all submitting the codes? or it is fine if we release it if/after acceptance. My code is so messy so m in dilemma

/r/MachineLearning
https://redd.it/1mc5jdg