Python Daily – Telegram
Python Daily
2.57K subscribers
1.49K photos
53 videos
2 files
39K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
Question for small prod app monitoring

How do you keep tabs on things like: OS updates / security patches, dependency or framework security issues, or just general time to upgrade Django or Python, or App health beyond “it’s up”.

I’d love a weekly email digest that gives me a list of these things and the ‘risk’ of not doing it.

/r/djangolearning
https://redd.it/1pq0ky3
Hosting options for MVP

Hi, I'm building a SaaS MVP that is completely bootstrapped. All I've used at work last 10 years is AWS and GCP. I don't think that suits me well at this stage. If the product actually takes off, I'd probably have to move it to AWS/GCP eventually. What are my hosting options today? I need Postgresql to run the app so hosted option would be nice but I guess I could run it as well on my own. Need this to be cheap and reliable. Scale is not an issue at the moment. Ideas?

/r/django
https://redd.it/1ppxotd
Friday Daily Thread: r/Python Meta and Free-Talk Fridays

# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️

Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!

## How it Works:

1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.

## Guidelines:

All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.

## Example Topics:

1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.

Let's keep the conversation going. Happy discussing! 🌟

/r/Python
https://redd.it/1pq6egw
My Django-powered Quiz App running in Japanese (Hiragana) mode. Handling dynamic content & scoring logic. 🐍🇯🇵

/r/django
https://redd.it/1ppquhi
D AAMAS 2026 result is out.

This year we received a total of 1343 submissions (after withdrawals and desk rejections) of which 338 were accepted as full papers, resulting in an acceptance rate of 25%. Another 205 submissions were accepted as extended abstracts for an overall (full papers + extended abstracts) acceptance rate of 40%.

They originally set Dec 22nd as the announcement date, but it seems like they decided to go earlier.

/r/MachineLearning
https://redd.it/1pqjtbe
Django 6.0 Feature Friday: Template Partials!

It's Feature Friday again. This time featuring Template partials!

New in Django 6.0, this extension to Django's template language makes it easy to reuse fragments in templates: Great for cutting down the overhead of creating files for small pieces of isolated logic!

First, defining partials:

The new {% partialdef %} tag lets you do this. You give your template a unique name, and then anything you put inside will be the contents of the template.

{% partialdef user-info %}
<div id="user-info-{{ user.username }}">
<h3>{{ user.name }}</h3>
<p>{{ user.bio }}</p>
</div>
{% endpartialdef %}

Next up, rendering:

This can be done with the {% partial %} tag. Give it the name of a partial template and the contents of that template will be rendered at that location in the template. This works exactly like {% include %} would on a template file.

{% block content %}
<h2>Authors</h2>


/r/django
https://redd.it/1pqjl11
TalkPython podcast's another GEM of Talk/Round-Table - Framework Creators- Maintainers

https://www.youtube.com/watch?v=cHmoClKu6qk

Jeff Triplett - Django | Carlton Gibson - Django RestFramework

Sebastian Ramirez - FASTApi
David Lord and Phil Jones - Flask
Yanik Nouvertne and Cody Fincher - LiteStar

Great to listen from creators, their views and insights about current state and direction of these Projects.

Things I got learn:

\- Upgrading Python might be easy way to solve some/many of your performance issues

\- Try out https://github.com/ultrajson/ultrajson or other libraries for serialization

\- Try out uvicorn or some other async alternative to gunicorn even if not going fully async(with Django)

\- Try out https://github.com/emmett-framework/granian

/r/django
https://redd.it/1pqthhz
Accelerating Tree-Based Models in SQL with Orbital

I recently worked on improving the performance of tree-based models compiled to pure SQL in Orbital, an open-source tool that converts Scikit-Learn pipelines into executable SQL.

In the latest release (0.3), we changed how decision trees are translated, reducing generated SQL size by \~7x (from \~2M to \~300k characters) and getting up to \~300% speedups in real database workloads.

This blog post goes into the technical details of what changed and why it matters if you care about running ML inference directly inside databases without shipping models or Python runtimes.

Blog post:
https://posit.co/blog/orbital-0-3-0/

Learn about Orbital:
https://posit-dev.github.io/orbital/

Happy to answer questions or discuss tradeoffs

/r/Python
https://redd.it/1pqnxm5
Saturday Daily Thread: Resource Request and Sharing! Daily Thread

# Weekly Thread: Resource Request and Sharing 📚

Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!

## How it Works:

1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.

## Guidelines:

Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.

## Example Shares:

1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.

## Example Requests:

1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.

Share the knowledge, enrich the community. Happy learning! 🌟

/r/Python
https://redd.it/1pr052n
Switching themes on the fly in Flask-Admin

This might be more of a general Python question, but: in Flask-Admin, according to the Introduction to Flask-Admin docs, you can use different themes by initializing the app with:


admin = Admin(app, name='microblog', theme=Bootstrap4Theme(swatch='cerulean'))

This isn't really documented; the entire docs for "theme" just say "theme – Base theme. Defaults to Bootstrap4Theme().", with nothing about what other themes might exist, how to find and install them, etc.

Regardless, the main question is: Is there an easy way to switch themes on the fly, e.g. on a per-user basis? "Click here for dark mode", or letting users configure it in a personalization step, that kind of thing? Or can this only be done for the entire app at the initialization stage?



/r/flask
https://redd.it/1pqsd5x
The offline geo-coder we all wanted

#### What is this project about
This is an offline, boundary-aware reverse geocoder in Python. It converts latitude–longitude coordinates into the correct administrative region (country, state, district) without using external APIs, avoiding costs, rate limits, and network dependency.

#### Comparison with existing alternatives
Most offline reverse geocoders rely only on nearest-neighbor searches and can fail near borders. This project validates actual polygon containment, prioritizing correctness over proximity.

#### How it works
A KD-Tree is used to quickly shortlist nearby administrative boundaries, followed by on-the-fly polygon enclosure validation. It supports both single-process and multiprocessing modes for small and large datasets.

#### Performance
Processes 10,000 coordinates in under 2 seconds, with an average validation time below 0.4 ms.

### Target audience
Anyone who needs to do geocoding

### Implementation
It was started as a toy implementation, turns out to be good on production too

The dataset covers 210+ countries with over 145,000 administrative boundaries.

Source code: https://github.com/SOORAJTS2001/gazetteer
Docs: https://gazetteer.readthedocs.io/en/stable
Feedback is welcome, especially on the given approach and edge cases

/r/Python
https://redd.it/1pr3bih
uv update recommendations

After adopting astral's uv last August, I did my first check for updates and found astral releases \-- pretty much non-stop.

What are other folks' experiences with updates? Is updating to the latest and greatest a good strategy, or is letting others "jump in the water" first prudent?

/r/Python
https://redd.it/1pqyzse
Elasticsearch-Grade Search, Zero Infrastructure — Just Django + Postgres

Elasticsearch-Grade Search, Zero Infrastructure — Just Django + Postgres

Native BM 25 search with PostgreSQL extension.

https://github.com/FarhanAliRaza/django-hawkeye

pip install django-hawkeye

/r/django
https://redd.it/1pqxqbv
Would you use this instead of Electron for a real project? (Python desktop GUI)

I’ve tried building small desktop apps in Python multiple times. Every time it ended the same way: frameworks felt heavy and awkward, like Electron felt exrteamly overkill. Even when things worked, apps were big and startup was slow (most of them). so I started experimenting with a different approach and created my own, I tried to focus on performance and on making the developer experience as simple as possible. It's a desktop framework that lets you build fast native apps using Python as a backend (with optional React/Vite, python or just html/js/css for the UI)

I’m actively collecting early feedback. Would you try taupy in a real project?

Why or why not? I just really need your honest opinion and any advice you might have

git - https://github.com/S1avv/taupy

small demo - https://github.com/S1avv/taupy-focus

Even a short answer helps. Critical feedback is very welcome.

/r/Python
https://redd.it/1pqu2wu
Monkey Patching is hell. So I built a Mixin/Harmony-style Runtime AST Injector for Python.

**What My Project Does**

"Universal Modloader" (UML) is a runtime patching framework that allows you to inject code, modify logic, and overhaul applications **without touching the original source code**.

Instead of fragile monkey-patching or rewriting entire files, UML parses the target's source code at runtime and injects code directly into the Abstract Syntax Tree (AST) before execution.

This allows you to:

* Intercept and modify local variables inside functions (which standard decorators cannot do).
* Add logic to the beginning (HEAD) or end (TAIL) of functions.
* Overwrite return values or arguments dynamically.

**Target Audience**

This project is intended for **Modders, Researchers, and Hobbyists**.

* **For Modders:** If you want to mod a Python game or tool but the source is hard to manage, this acts like a BepInEx/Harmony layer.
* **For Researchers:** Useful for chaos engineering, time-travel debugging, or analyzing internal states without altering files.

**WARNING:** By design, this enables Arbitrary Code Execution and modifies the interpreter's state. **It is NOT meant for production environments.** Do not use this to patch your company's production server unless you enjoy chaos.

**Comparison**

How does this differ from existing solutions?

* **VS Standard Decorators:** Decorators wrap functions but cannot access or modify *internal local variables* within the function scope. UML can.
* **VS Monkey Patching:** Standard monkey

/r/Python
https://redd.it/1prf4zd
[Project] Pyrium – A Server-Side Meta-Loader & VM: Script your server in Python

I wanted to share a project I’ve been developing called **Pyrium**. It’s a server-side meta-loader designed to bring the ease of Python to Minecraft server modding, but with a focus on performance and safety that you usually don't see in noscripting solutions.

# 🚀 "Wait, isn't Python slow?"

That’s the first question everyone asks. Pyrium does **not** run a slow CPython interpreter inside your server. Instead, it uses a custom **Ahead-of-Time (AOT) Compiler** that translates Python code into a specialized instruction set called **PyBC (Pyrium Bytecode)**.

This bytecode is then executed by a highly optimized, Java-based **Virtual Machine** running inside the JVM. This means you get Python’s clean syntax but with execution speeds much closer to native Java/Lua, without the overhead of heavy inter-process communication.

# 🛡️ Why use a VM-based approach?

Most server-side noscripts (like Skript or Denizen) or raw Java mods can bring down your entire server if they hit an infinite loop or a memory leak.

* **Sandboxing:** Every Pyrium mod runs in its own isolated VM instance.
* **Determinism:** The VM can monitor instruction counts. If a mod starts "misbehaving," the VM can halt it without affecting the main server thread.
* **Stability:** Mods are isolated from the JVM and each other.

# 🎨 Automatic Asset Management (The ResourcePackBuilder)

One of the biggest pains in server-side modding

/r/Python
https://redd.it/1prasf0
How a try-except stole hours of our debugging time, or why Django signals went silent.

/r/django
https://redd.it/1prb6ge