Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.8K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
I built a deterministic engine to analyze 8th-century Arabic Poetry meters (Arud) with Python

Hi everyone,

I’ve just released PyArud v0.1.3, a Python library that digitizes the science of Arabic Prosody (ilm al-Arudh), originally founded by Al-Khalil bin Ahmed in the 8th century.

What My Project Does

Arabic poetry is built on a binary system of "Moving" (Mutaharrik) and "Still" (Sakin) sounds, forming 16 distinct meters (Buhur). Analyzing this computationally is hard because:

1. Orthography vs. Phonetics: What is written isn't what is pronounced (e.g., "Allahu" has a hidden long vowel).
2. Complexity: A single meter like Kamil has dozens of valid variations (Zihaf) where letters can be dropped or quieted.
3. LLMs struggle: Asking ChatGPT to scan a poem usually results in hallucinations because it predicts tokens rather than strictly following the prosodic rules.

The Solution: PyArud

I built a deterministic engine that:

* Converts Text: Uses regex and lookaheads to handle deep phonetic rules (like Iltiqa al-Sakinayn \- the meeting of two stills).

* Greedy Matching: Implements a greedy algorithm to segment verses into their component feet (Tafilas).

* Deep Analysis: Identifies not just the meter, but the specific defect (Ellah) used in every foot.

Example

from pyarud.processor import ArudhProcessor


# A verse from

/r/Python
https://redd.it/1p8t4a8
Topics you want to hear on Talk Python To Me

Hey Talk Python podcast fans! I'm looking to book a bunch of topics / guests / episode for 2026. Do you have recommendations on what you'd like to hear about?


Haven't heard of Talk Python To Me is? It's a Python podcast at https://talkpython.fm

/r/Python
https://redd.it/1p8ziy3
pmp - a tool to manage your prompts locally

Hey Everyone!

I've been working with LLMs a lot lately and got tired of managing prompts in random text files and copy-pasting them around. So I built pmp \- a simple cli tool for managing prompts with versioning and pluggable storage backends.

https://github.com/julio-mcdulio/pmp

There are quite a few products out there like mlflow and langfuse, but they come with a lot of bells and whistles and have complex deployments with a web frontend. I just wanted something simple and lightweight with no dependencies.

$ pmp add code-reviewer --content "Review this code for bugs and improvements" --tag "code,review" --model "gpt-4"
prompt "code-reviewer" version 1 created

$ pmp get code-reviewer
Review this code for bugs and improvements

$ pmp update code-reviewer --content "Review this code thoroughly for bugs, security issues, and improvements"
prompt "code-reviewer" version 2 created

$ pmp list --tag code
code-reviewer
summarize

I've also added support for an optional dotprompt storage backend, and I'm planning to add support for

/r/Python
https://redd.it/1p97p3h
Best practices 2025?

Soon setting up Django at a VPS mostly for learning (again). Excluding containers what's a current stack? Debian, Nginx, Gunicorn, PostgreSQL, UV venv, Let's encrypt, Cloudflare, memcached/redis, RabbitMQ, HTMX, cookiecutter...?

/r/django
https://redd.it/1p943xi
Struggling to find the right Django docs for building better apps

I started learning Django from the official tutorial and built a few small projects.

Now I want to make my apps more professional and secure using Django’s built-in features, like extending AbstractUser to create a custom user model.

It took me a long time to find the right sections in the docs and figure out the recommended approach.

When you’re building real-world Django apps, how do you usually figure out the best way to do things, and how do you quickly find the features you need in the docs?

/r/django
https://redd.it/1p94bca
Hi all I'm making my first large scale app and I'm struggling to organize the code!

Right now it's a monolith, I've got everything separated into models->feature->model.py etc. it's ok but it's making development a nightmare when I have to search for the model serializer signal service url view to develop.

I was thinking about separating every feature into Django apps But they all really depend on one another and will require loads of inter app foreign keys, so I was thinking of leaving it in a monolith but separating into app style folders ie. api.feature.models - views - serializers - admin - urls etc. but I was wondering if this would slow down the app as it would all be linked via . Init

/r/django
https://redd.it/1p8siw6
D ICLR 2026 Clarification: Your responses will not go to waste!

You are receiving this email as an author of a submitted paper to ICLR 2026.

We have heard from a few authors who are frustrated by the fact that review scores are being reverted to their pre-discussion state and no further reviewer discussions or public comments are allowed. We understand your frustration. Many of you spent a significant amount of work on your rebuttal and the subsequent ensuing discussion.

We want to clarify that only the review itself ("Official Review") is being reverted: your response and prior discussion with reviewers will remain intact and will be considered by the area chair. In addition, you have the option as an author to post additional comments on the forum. You can use this opportunity to post a summary comment giving any other necessary information to the AC.

The AC's decision-making process:

ACs will have a longer period to write their meta-reviews.
ACs will be explicitly instructed to take your response and the prior discussion into account.
ACs will be asked to estimate how the reviewer's impressions would have changed had the discussion period not been cut short.
We will be recruiting emergency ACs to offload effort from any ACs who tell us the workload is too

/r/MachineLearning
https://redd.it/1p9d661
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/1p9a5ab
Interview questions for 2-3 yoe Django/DRF developer

Hi!

Could any recruiter or senior Django developer share some interview questions you usually ask or have encountered in your interviews?

Your help and time would be greatly appreciated.

/r/djangolearning
https://redd.it/1p6ltr0
PyPermission: A Python native RBAC authorization library!

Hello everyone at r/python!

At our company, we repeatedly needed to integrate authorization into Python projects and found the ecosystem a bit lacking.

# Comparison With Other Solutions

Django's permission system wasn't enough
Casbin, Keto and OPA offer flexible solutions, but can be hard to integrate
We wanted something Python-native, without a policy DSL and with auditing support

# What My Project Does

Knowing that authorization comes with many pitfalls, we decided to build an RBAC model focussing on an intuitive API and extensive testing. PyPermission is the result and draws on what we learned implementing RBAC across multiple projects (with and without third party solutions).

NIST RBAC Level 2a (supports general role hierarchies)
Framework independent, Free and Open Source
Additional capabilities from the ANSI RBAC model
A simple and tested python API
Persistency via PostgreSQL or Sqlite (SQLAlchemy)

# Target Audience

Developers looking for a simple authz solution without enterprise complexities, but a well established RBAC model.

The core implementation of the library is feature complete and heavily tested (overall test coverage of 97%) and we desire to have everything battle tested now. This is why we are excited to share our project with you and want to hear your feedback!

Repo: [https://github.com/DigonIO/pypermission](https://github.com/DigonIO/pypermission)
Docs: https://pypermission.digon.io/

/r/Python
https://redd.it/1p9ebul
Is anyone else choosing not to use AI for programming?

For the time being, I have chosen not to use generative AI tools for programming, both at work and for hobby projects. I imagine that this puts me in the minority, but I'd love to hear from others who have a similar approach.

These are my main reasons for avoiding AI for the time being:

I imagine that, if I made AI a central component of my workflow, my own ability to write and debug code [might start to fade away](https://lucianonooijen.com/blog/why-i-stopped-using-ai-code-editors/). I think this risk outweighs the possible (but [not guaranteed](https://arxiv.org/pdf/2507.09089)) time-saving benefits of AI.
AI models might inadvertently spit out large copies of copyleft code; thus, if I incorporated these into my programs, I might then need to release the entire program under a similar copyleft license. This would be frustrating for hobby projects and a potential nightmare for professional ones.
I find the experience of writing my own code very fulfilling, and I imagine that using AI might take [some of that fulfillment away](https://colton.dev/blog/curing-your-ai-10x-engineer-imposter-syndrome/#its-okay-to-be-less-productive).
LLMs rely on huge amounts of human-generated code and text in order to produce their output. Thus, even if these tools become ubiquitous, I think there will always be a need (and demand) for programmers

/r/Python
https://redd.it/1p9wluw
I built a tool that converts your Python script into a shareable web app

I love writing simple Python scripts to fulfill niche tasks, but sharing them with less technical people always creates problems.

Comparison With Other Solutions

Sharing raw scripts leads to pip/dependency issues
Non-technical users often give up before even running the tool
The amazing tools our community develops never reach people who need them most
We needed something to bridge the gap between developers and end users

What My Project Does

I decided to build SimpleScript to make Python scripts accessible to everyone through beautiful, easy-to-use web interfaces. The platform automatically transforms your scripts into deployable web apps with minimal configuration.

Automatic script analysis and UI generation
Works with any Python script
Simple 3-step process: connect repo → auto-detect configs → deploy
Handles arguments, outputs, and user input automatically

Target Audience

Developers who want to share their Python tools with non-technical users without dealing with installation headaches or building full web applications.

Platform: [https://simple-script.com/](https://simple-script.com/)
Examples: https://simple-script.com/browse

You can also add a badge to your Github page like seen here

https://github.com/TobiasPankner/Letterboxd-to-IMDb

/r/Python
https://redd.it/1p9wkbi
Sunday Daily Thread: What's everyone working on this week?

# Weekly Thread: What's Everyone Working On This Week? 🛠️

Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!

## How it Works:

1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.

## Guidelines:

Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.

## Example Shares:

1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!

Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟

/r/Python
https://redd.it/1pa3qvx
I created my own Homehub in Python (D_Ei_Why_Hub)

Hey everyone,

(The link for the people who don't care about my yap)

([https://github.com/Grefendor/D\_Ei\_Why\_Hub](https://github.com/Grefendor/D_Ei_Why_Hub))

**What My Project Does:**

I used to always look for a project I can tackle to actually build something. So I started to build myself a pantry manager. This quickly escalated big time and now I have a fully modular homehub with different apps and widgets. There definetelly are still some errors every now and then. Specifically when it comes to the interface. It is intended to run on a tablet or like py with touchscreen and it will become more touch friendly in the future but for now there are some cool features:

\- it is multi lingual
\- it somewhat supports different resolutions (This will come I am just tired for today)
\-the pantry manager just needs a barcode and pulls the rest from the internet
\-there is homeassistant integration I have never tested, since I don't have home assistant (I really don't know why I did this, Dream big I guess)
\-A Taskboard
\-A simple calender and calendar widget
\-A clock (Revolutionary I know)

Planned features:
\- Spotify and Airplay integration (I have airplay speakers and want to use them via my

/r/Python
https://redd.it/1pa1lbt
I built SentinelNav, a zero-dependency binary file visualization tool to map file structure

Hi everyone,

I’ve just released SentinelNav, a pure Python tool that creates interactive spectral maps of binary files to visualize their internal "geography." It runs entirely on the standard library (no pip install required).

What My Project Does

Analyzing raw binary files (forensics, reverse engineering, or file validation) is difficult because:

Hex Dumps are dense: Reading 50MB of hex code to find where a text section ends and an encrypted payload begins is mentally exhausting and slow.
Pattern Recognition: It is hard to distinguish between compressed data, random noise, and machine code just by looking at values.
Dependency Hell: Many existing visualization tools require heavy GUI frameworks (Qt) or complex environment setups just to perform a quick check.

The Solution: SentinelNav

I built a deterministic engine that transforms binary data into visual clusters:

Spectral Mapping: It maps byte values to RGB colors. High-bit bytes (compiled code/media) appear Red, printable ASCII appears Green, and nulls/padding appear Blue. This allows you to visually identify file headers and sections instantly.
Architecture Heuristics: It scans raw binary chunks to detect headers (PE, ELF, Mach-O) and attempts to guess the CPU architecture (x86 vs ARM64) based on instruction alignment and opcode frequency.
Entropy Analysis: It calculates Shannon entropy per block

/r/Python
https://redd.it/1pa91j5
Django cheat sheet for newbies (sort off): Tailwind, decorators, Auth, Nginx, Background tasks

There are some random things I do in Django, from setting up S3 storage to customizing the auth. Some concepts are basic, some not so much, so it's a mixed bag; maybe it'll be useful to you if you're learning Django or want to see some practical examples.

https://kevincoder.co.za/django-cheat-sheet

/r/django
https://redd.it/1p9n75c
Built a small open-source tool (fasthook) to quickly create local webhook endpoints

I’ve been working on a lot of API integrations lately, and one thing that kept slowing me down was testing webhooks. Whenever I needed to see what an external service was sending to my endpoint, I had to set up a tunnel, open a dashboard, or mess with some configuration. Most of the time, I just wanted to see the raw request quickly so I could keep working.

So I ended up building a small Python tool called fasthook. The idea is really simple. You install it, run one command, and you instantly get a local webhook endpoint that shows you everything that hits it. No accounts, no external services, nothing complicated.

/r/Python
https://redd.it/1p9cnqq
What should be the license of a library created by me using LLMs?

I have created a [plugin for mypy ](https://github.com/diegojromerolopez/mypy-pure)that checks the presence of "impure" functions (functions with side-effects) in user functions. I've leveraged the use of AI for it (mainly for the AST visitor part). The main issue is that there are some controversies about the potential use of copyrighted code in the learning datasets of the LLMs.

I've set the project to MIT license but I don't mind user other license, or even putting the code in public domain (it's just an experiment). I've also introduced a disclaimer about the use of LLMs in the project.

Here I have some questions:

* What do you do in this case? Avoid LLMs completely? Ask them about their sources of data? I'm based in Europe (Spain, concretely).
* Does PyPI have any policy about LLM-generated code?
* Would this be a handicap with respect to the adoption of a library?

/r/Python
https://redd.it/1pac4x0
app.run() not recommended for development server?

For me it would be convenient to run the Flask development server with Flask.run() however the documentation says:

> It is not recommended to use this function for development with automatic reloading as this is badly supported. Instead you should be using the flask command line script’s run support.

Documentation link: https://flask.palletsprojects.com/en/stable/api/#flask.Flask.run

Instead they suggest to use the command line flask run which I currently do.

But I wonder how its different. Why is Flask.run not recommended?

/r/flask
https://redd.it/1p9t86o
Do I need to remove WSGI_APPLICATION in settings.py ?

I just installed channels and in the docs I see ASGI\_APPLICATION but they never mentioned whether to remove
`WSGI_APPLICATION = 'myproject.wsgi.application'`

How does this settings affect production if I have only ASGI_APPLICATION variable. as I am planning to use **uvicorn** in production.

/r/django
https://redd.it/1pafm64
Birds Vs Bats - A Python Shell Game

Project Link: https://github.com/Onheiron/PY-birds-vs-bats

What My Project Does: It's a videogame for the command shell! Juggle birds and defeat bats!

Target Audience: Hobby project

Comparison: It has minimalist ASCII art and cool new mechanics!

SCORE: 75 | LEVEL: 1 | NEXT: 3400 | LIVES: ●●●●●
=============================================



















. .


/r/Python
https://redd.it/1padhh7