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
What advice would you give yourself as you embarked on your first Django build?

So my first project is a company secretarial platform to track filings, draft minutes, resolutions, M&As etc from templates as well and holding share registers and statutory appointments and AML/KYC info. I’ve only got a bit of python experience and I’ve never written anything in Django (also seem to be learning a bit of powershell on the fly too). Any rookie errors I could avoid on advice of you good fellas would be much appreciated 👌🏻

/r/djangolearning
https://redd.it/1oyy42x
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/1oz1c67
Ultra-strict Python template v2 (uv + ruff + basedpyright)

Some time ago I shared a strict Python project setup. I’ve since reworked and simplified it, and this is the new version.

> pystrict-strict-python – an ultra-strict Python project template using uv, ruff, and basedpyright, inspired by TypeScript’s --strict mode.

Compared to my previous post, this version:

- focuses on a single pyproject.toml as the source of truth,
- switches to basedpyright with a clearer strict configuration,
- tightens the ruff rules and coverage settings,
- and is easier to drop into new or existing projects.

What it gives you

- Strict static typing with basedpyright (TS --strict style rules):
- No implicit Any
- Optional/None usage must be explicit
- Unused imports / variables / functions are treated as errors
- Aggressive linting & formatting with ruff:
- pycodestyle, pyflakes, isort
- bugbear, security checks, performance, annotations, async, etc.
- Testing & coverage:
- pytest + coverage with 80% coverage enforced by default
- Task runner via poethepoet:
- poe format → format + lint + type check
- poe check → lint + type check (no auto-fix)
- poe metrics → dead code + complexity + maintainability
- poe quality → full quality pipeline
- Single-source config: everything is in

/r/Python
https://redd.it/1oz4x0f
Easiest frontend framework to get started

Hi,

Since the beginning I have solely worked on the DRF. Sometimes if I need frontend then AI does that for me, but now I want to dive into World of frontend as well.

Which one is easiest to start?

Whenever I try frontend I just find that there is a ton of code.

Many of my python files don't generally cross 1000 lines. I am able to easily break them down into components and as per requirement put them into their respective files. But for frontend devs 500 / 1000 lines seems pretty common.

I tried django templates but there is lot to write, vanilla html requires you to write a ton. I also tried react, but still there is a lot to write.


Which one will be easy to get started?

/r/django
https://redd.it/1oz4yj2
Looking to Collaborate on Django + Frontend Projects (We’re a Duo, Still Leveling Up)

We’re two friends trying to get better by building real projects with others.

I’m learning AI/ML and Django backend
My friend is learning frontend (HTML, CSS, JS moving toward React)

If anyone here is working on a Django project and needs contributors, we’d love to join and help out. We’re not experts yet but we’re serious about learning and can handle tasks if you guide us a bit.

If you’re open to collaborating just reply or DM. Thanks

/r/django
https://redd.it/1oz8vdh
Created a complete Python 3.14 reference with hands-on examples (GitHub repo included)

I wanted to share a comprehensive resource I created covering all 8 major features in Python 3.14, with working code examples and side-by-side comparisons against Python 3.12.

**What's covered:**

* Deferred evaluation of annotations - import performance impact
* Subinterpreters with isolated GIL - true parallelism benchmarks
* Template strings and comparison with F Strings
* Simplified except/except\* syntax
* Control flow in finally blocks
* Free-threads - No GIL
* Enhanced error messages - debugging improvements
* Zstandard compression support - performance vs gzip

**What makes this different:**

* Side-by-side code comparisons (3.12 vs 3.14)
* Performance benchmarks for each feature
* All code available in GitHub repo with working examples

**Format:** 55-minute video with timestamps for each feature

**GitHub Repository:** [https://github.com/devnomial/video1\_python\_314](https://github.com/devnomial/video1_python_314)

**Video:** [https://www.youtube.com/watch?v=odhTr5UdYNc](https://www.youtube.com/watch?v=odhTr5UdYNc)

I've been working with Python for 12+ years and wanted to create a single comprehensive resource since most existing content only covers 2-3 features.

Happy to answer questions about any of the features or implementation details. Would especially appreciate feedback or if I missed any important edge cases.

/r/Python
https://redd.it/1ozdi7j
Creating real time industrial applications (SCADA systems) in Django. Need recommendations?

Hi all, We are building machine vision based solutions for various industries. An e.g. scenario:
Counting passing boxes on the conveyor line.

1. The image is fetched from the camera.
2. Object detection algorithms tracks if the box has moved past the counting line.
3. if crossed, updates the counter.

For this entire application, can I develop a web app in Django which shows the following:

1. Total count
2. Hourly count
3. Live video feed
4. Pages to download analytics reports.

NOTE: This has to run real time on a decently powerful PC. If yes, Can you please link some tutorials/ github repos for the same?

/r/django
https://redd.it/1oz97vp
What happened to mCoding?

James was one of the best content creators in the Python community. I was always excited for his videos. I've been checking his channel every now and then but still no sign of anything new.

Is there something I'm missing?

/r/Python
https://redd.it/1ozkzsb
jTable and Django integration: django-jtable pypi project (alpha)

/r/django
https://redd.it/1ozqp3t
Does anyone else in ML hate PyTorch for its ABI?

I love PyTorch when I’m using it, but it really absolutely poisons the ML ecosystem. The fact that they eschewed a C ABI has caused me and my team countless hours trying to help people with their scripts not working because anything that links to PyTorch is suddenly incredibly fragile.

Suddenly your extension you’re loading needs to, for itself and all libraries it links:

- Have the same ABIs for every library PyTorch calls from (mostly just libstdc++/libc++)
- Use the exact same CXX ABI version
- Exact same compiler version
- Exact same PyTorch headers
- Exact same PyTorch as the one you’re linking

And the amount of work to get this all working efficiently is insane. And I don’t even know of any other big ML C++ codebases that commit this sin. But it just so happens that the most popular library in ML does.

/r/Python
https://redd.it/1ozhgfa
Is Continuous Learning Just Procrastination in Disguise?

Hey devs. We all talk about procrastination, but we rarely acknowledge one of its most “acceptable” forms: endlessly studying without applying anything.

Many of us (myself included) stack up courses, tutorials, notes, and videos… but never turn them into a real project. So what happens when a junior repeats the same mistake and asks you:

What’s the sign that tells you you’re no longer learning… but avoiding the actual work?

What would your advice be?

/r/flask
https://redd.it/1ozpc5s
How to Benchmark your Python Code

Hi!

https://codspeed.io/docs/guides/how-to-benchmark-python-code

I just wrote a guide on how to test the performance of your Python code with benchmarks. It 's a good place to start if you never did it!

Happy to answer any question!

/r/Python
https://redd.it/1ozhv03
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/1ozwrmm
' " """ So, what do you use when? """ " '

I realized I have kind of an idiosyncratic way of deciding which quotation form to use as the outermost quotations in any particular situation, which is:

* Multiline, """.
* If the string is intended to be human-visible, ".
* If the string is not intended to be human-visible, '.

I've done this for so long I hadn't quite realized this is just a convention I made up. How do you decide?

/r/Python
https://redd.it/1ozr7d7
Need help!!

As a django developer it is so hard to land a job for me. I learnt redis, kafka, built projects like pdfsummarizers, ecomm with redis, celery based projects too... But still i am not getting a shortlisted for a company.

Most of the companies give assignments to shortlist the candidates but when i submit it , i didn't get any response from them. How can i land a job then?? The job market is already so tight.

/r/django
https://redd.it/1p05uma
Lacuna – High-performance sparse matrices for Python, Rust backend

**What My Project Does**

Lacuna is a high-performance sparse matrix library for Python, backed by Rust (SIMD + Rayon) with a NumPy-friendly API. It currently provides:

* 2-D formats: **CSR, CSC, COO**
* N-D tensors: **COOND** (N-dimensional COO)
* Kernels for `float64` values / `int64` indices:
* SpMV / SpMM
* Reductions: total sum, row/column sums
* Transpose
* Arithmetic: add, sub, Hadamard (elementwise)
* Cleanup: `prune(eps)`, `eliminate_zeros`
* N-D COO ops:
* `sum`, `mean`
* `reduce_*_axes`, `permute_axes`, `reshape`
* broadcasting Hadamard
* unfold to CSR/CSC along a mode or grouped axes

The Python API is designed to work smoothly with NumPy, using zero-copy reads of input buffers when it’s safe.

**Target Audience**

Lacuna is intended for people who:

* Work with **large sparse matrices or tensors** (e.g. scientific computing, FEM/CFD, graph problems, PageRank, power iterations)
* Need **high-performance kernels** but want to stay in Python/NumPy world
* Are interested in experimenting with **N-D sparse arrays** (beyond 2-D matrices) without densifying

It’s currently a **work-in-progress** project (APIs and performance characteristics may change), so it’s best suited for experimentation, research, and early adopters rather than critical production workloads.

**Comparison**

* **SciPy.sparse**
* Very mature and

/r/Python
https://redd.it/1p02oi1
Zuban supports Autoimports now

Auto-imports are now supported. This is likely the last major step toward feature parity with Pylance. The remaining gaps are inlay hints and code folding, which should be finished in the next few weeks.

Zuban is a Python Language Server and type checker:

* [zubanls.com](https://zubanls.com)
* [Repository](https://github.com/zubanls/zuban)
* [Changelog](https://docs.zubanls.com/en/latest/changelog.html)

Appreciate any feedback!

/r/Python
https://redd.it/1p074c8
FastAPI-NiceGUI-Template: A full-stack project starter for Python developers to avoid JS overhead.

This is a reusable project template for building modern, full-stack web applications entirely in Python, with a focus on rapid development for demos and internal tools.

### What My Project Does

The template provides a complete, pre-configured application foundation using a modern Python stack. It includes:

Backend Framework: FastAPI (ASGI, async, Pydantic validation)
Frontend Framework: NiceGUI (component-based, server-side UI)
Database: PostgreSQL (managed with Docker Compose)
ORM: SQLModel (combines SQLAlchemy + Pydantic)
Authentication: JWT token-based security with pre-built logic.
Core Functionality:
Full CRUD API for items.
User management with role-based access (Standard User vs. Superuser).
Dynamic UI that adapts based on the logged-in user's permissions.
Automatic API documentation via Swagger UI and ReDoc.

The project is structured with a clean separation between backend and frontend code, making it easy to navigate and build upon.

### Target Audience

This template is intended for Python developers who:

Need to build web applications with interactive UIs but want to stay within the Python ecosystem.
Are building internal tools, administrative

/r/Python
https://redd.it/1p04iie
ferreusrbf - a fast, memory efficient global radial basis function (RBF) interpolation library

**What My Project Does**

ferreus\
rbf is a fast and memory efficient global radial basis function (RBF) interpolation library for Python, with a Rust backend.

Radial basis function (RBF) interpolation is a flexible, mesh‑free approach for approximating scattered data, but direct solvers require O(N²) memory and O(N³) work, which becomes impractical beyond modest problem sizes.

This library provides a scalable alternative by combining:

Domain decomposition preconditioning for the global RBF system, and
A black box fast multipole method (BBFMM) evaluator for fast matrix–vector products,

reducing the overall complexity to roughly O(N log N) and enabling global interpolation on millions of points in up to three dimensions.

The library also offers the ability to generate isosurfaces (in 3D) from RBF interpolation.

Target Audience

ferreus_rbf is intended for people, such as geologists and data scientists, who:

Work with large datasets that can't utilise traditional RBF interpolation method.
Want to generate an isosurface in 3D from RBF interpolation.
Aren't familiar with C++ and its build systems.

Comparison

SciPy.interpolation.RBFInterpolator
Scipy is very mature and robust for ndimensional RBF interpolation
Due to memory constraints, Scipy can only interpolate with larger datasets using the 'neighbours' option, which greatly reduces the accuracy of the solve and introduces undesirable artifacts when

/r/Python
https://redd.it/1p06stb
Editorial System in Django?

Hello, I want to build a editorial system in my Django project with Roles (Author, Editor) and transition rules (switch from Draft to Published etc.). Do you have any suggestions for existing packages?

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