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
complexipy 5.0.0, cognitive complexity tool

Hi r/Python! I've released the version [v5.0.0](https://github.com/rohaquinlop/complexipy/releases/tag/5.0.0). This version introduces new changes that will improve the tool adoption in existing projects and the cognitive complexity algorithm itself.

**What My Project Does**

`complexipy` is a command-line tool and library that calculates the cognitive complexity of Python code. Unlike cyclomatic complexity, which measures how complex code is to test, cognitive complexity measures how difficult code is for humans to read and understand.

**Target audience**

`complexipy` is built for:

* Python developers who care about readable, maintainable code.
* Teams who want to enforce quality standards in CI/CD pipelines.
* Open-source maintainers looking for automated complexity checks.
* Developers who want real-time feedback in their editors or pre-commit hooks.
* Researcher scientists, during this year I noticed that many researchers used `complexipy` during their investigations on LLMs generating code.

Whether you're working solo or in a team, `complexipy` helps you keep complexity under control.

**Comparison to Alternatives**

`Sonar` has the original version which runs online only in GitHub repos, and it's a slower workflow because you need to push your changes, wait until their scanner finishes the analysis and check the results. I inspired from them to create this tool, that's why it runs locally without having to publish anything and the analysis is really fast.

**Highlights of

/r/Python
https://redd.it/1p7fqbo
Thinking about a Python-native frontend - feedback?

Hey everyone experimenting with a personal project called Evolve.

The idea is to run Python directly in the browser via WebAssembly and use it to build reactive, component-based UIs - without writing JavaScript, without a virtual DOM, and without transpiling Python to JS.

# Current high-level architecture (text version):

User Python Code

Python → WebAssembly toolchain

WebAssembly Runtime (in browser)

Evolve Core
┌───────────────┐
│ Component Sys │
│ Reactive Core │
└───────┬───────┘

Tiny DOM Kernel



/r/Python
https://redd.it/1p7ec8z
15 most-watched Python conference talks of 2025 (so far)

Hi again r/python,

Below, you'll find 15 most-watched Python conference talks of 2025 so far.

These come with short summaries, so you can quickly decide whether a talk is worth watching. I put them together with a little help from AI. Hope you like it!

1. **“”Escape from Tutorial Hell” - Sarah Reichelt (PyCon AU 2025)”** Conference ⸱ +55k views ⸱ Sep 21, 2025 ⸱ 00h 25m 55s tldw: This talk shows how to break free from the cycle of endless tutorials and actually start developing your own projects, with helpful tips on design, structure, and using AI tools, applicable to any programming language.
2. **“Keynote Speaker - Cory Doctorow”** Conference ⸱ +33k views ⸱ May 22, 2025 ⸱ 00h 43m 49s tldw: How Big Tech rigs the internet and what developers can actually do to take back control.
3. **“How to build a cross-platform graphical user interface with Python - Russell Keith-Magee”** Conference ⸱ +23k views ⸱ Jun 02, 2025 ⸱ 00h 28m 23s tldw: Learn how to create a cross-platform GUI for your Python projects, and discover how to deploy your app seamlessly across desktops and mobile devices without changing any code.
4. **“Mentoring Both Ways: Helping Others While Leveling Up Yourself! — Manivannan

/r/Python
[https://redd.it/1p7xod0
Upload 4 web apps online

Hey,
I Have developed 4 small flask web sites for my personal use.
They require a very small database (right now they run with sqlite)
I want to upload them to the internet but to keep the code and access private for me for now.

Im looking for hosting service or a solution that I can upload them to it

Hopefully without cold start server
My budget is up to 7$ a month

Any recommendations or advice?

Thanks!

/r/flask
https://redd.it/1p7y4q2
Need a suggestion

I’m a B.Pharm 3rd-year student, but I actually got into coding back in my 1st year (2023). At first Python felt amazing I loved learning new concepts. But when topics like OOP and dictionaries came in, I suddenly felt like maybe I wasn’t good enough. Still, I pushed through and finished the course.
Later we shifted to a new place, far from the institute. My teacher there was great he even asked why I chose pharmacy over programming. I told him the truth: I tried for NEET, didn’t clear it due to lack of interest and my own fault to avoid studies during that time, so I chose B.Pharm while doing Python on the side. He appreciated that.
But now the problem is whenever college exams come, I have to stop coding. And every time I return, my concepts feel weak again, so I end up relearning things. This keeps repeating.
Honestly, throughout my life, I’ve never really started something purely out of interest or finished it properly except programming. Python is the only thing I genuinely enjoy,
Now I’m continuing programming as a hobby growing bit by bit and even getting better in my studies. But sometimes I still think

/r/Python
https://redd.it/1p8155t
Built a tool that converts any REST API spec into an MCP server

I have been experimenting with Anthropic’s Model Context Protocol (MCP) and hit a wall — converting large REST API specs into tool definitions takes forever. Writing them manually is repetitive, error-prone and honestly pretty boring.

So I wrote a Python library that automates the whole thing.

The tool is called **rest-to-mcp-adapter**. You give it an OpenAPI/Swagger spec and it generates:

* a full MCP Tool Registry
* auth handling (API keys, headers, parameters, etc.)
* runtime execution for requests
* an MCP server you can plug directly into Claude Desktop
* all tool functions mapped from the spec automatically

I tested it with the full Binance API. Claude Desktop can generate buy signals, fetch prices, build dashboards, etc, entirely through the generated tools — no manual definitions.

If you are working with agents or playing with MCP this might save you a lot of time. Feedback, issues and PRs are welcome.

**GitHub:**
Adapter Library: [https://github.com/pawneetdev/rest-to-mcp-adapter](https://github.com/pawneetdev/rest-to-mcp-adapter)
Binance Example: [https://github.com/pawneetdev/binance-mcp](https://github.com/pawneetdev/binance-mcp)

/r/Python
https://redd.it/1p7x3i8
Django Playground in the browser.

A fully working Django playground in the browser.
It is a proof of concept. I was able to run migrations and create a superuser locally. Now it's a question of making everything work.
https://django.farhana.li/

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

/r/djangolearning
https://redd.it/1p86zo0
Django roadmap

Hi! For past few months I've been learning web development and I have learned html, css, js,python and sql so far. Although I don't have mastery over these topics but I have mid-level understanding over all of them. Recently I have started Django and out of the box it's started to feel overwhelming. I don't know what my roadmap should be for django. (I have tried ai generated roadmap for django but it still feels overwhelming). Many of you guys maybe already work with django in the web development field i was hoping i could get some advice from you guys maybe a roadmap as well and also Am i the only one who is overwhelmed with django or is this a common phenomenon for beginners? Thanks in advance.

Note: I didn't have any prior knowledge of programming before starting the journey.

/r/django
https://redd.it/1p84d08
Hatch v1.16.0 - workspaces, dependency groups and SBOMs

We are happy to announce version 1.16.0 of Hatch. This release wouldn’t have been possible without Cary, our new co-maintainer. He picked up my unfinished workspaces branch and made it production-ready, added SBOM support to Hatchling, and landed a bunch of PRs from contributors!

My motivation took a big hit last year, in large part due to improper use of social media: I simply didn’t realize that continued mass evangelism is required nowadays. This led to some of our novel features being attributed to other tools when in fact Hatch was months ahead. I’m sorry to say that this greatly discouraged me and I let it affect maintenance. I tried to come back on several occasions but could only make incremental progress on the workspaces branch because I had to relearn the code each time. I’ve been having to make all recent releases from a branch based on an old commit because there were many prerequisite changes that were merged and couldn’t be released as is.

No more of that! Development will be much more rapid now, even better than the way it used to be. We are very excited for upcoming features :-)

/r/Python
https://redd.it/1p898zg
Python Podcasts & Conference Talks (week 48, 2025)

Hi r/Python! Welcome to another post in this series brought to you by Tech Talks Weekly. Below, you'll find all the Python conference talks and podcasts published in the last 7 days:

# 📺 Conference talks

# PyData Berlin 2025

1. **"Narwhals: enabling universal dataframe support"** ⸱ +584 views ⸱ 23 Nov 2025 ⸱ 00h 47m 01s
2. **"Docling: Get your documents ready for gen AI"** ⸱ +524 views ⸱ 23 Nov 2025 ⸱ 00h 32m 22s
3. **"Scaling Probabilistic Models with Variational Inference"** ⸱ +418 views ⸱ 23 Nov 2025 ⸱ 00h 29m 19s
4. **"A Beginner's Guide to State Space Modeling"** ⸱ +388 views ⸱ 23 Nov 2025 ⸱ 01h 31m 08s
5. **"Building Reactive Data Apps with Shinylive and WebAssembly"** ⸱ +232 views ⸱ 23 Nov 2025 ⸱ 00h 32m 29s
6. **"More than DataFrames: Data Pipelines with the Swiss Army Knife DuckDB"** ⸱ +213 views ⸱ 23 Nov 2025 ⸱ 01h 28m 06s
7. **"Exploring Millions of High-dimensional Datapoints in the Browser for Early Drug Discovery"** ⸱ +212 views ⸱ 23 Nov 2025 ⸱ 00h 27m 39s
8. **"Spot the difference: 🕵️ using foundation models to monitor for change with satellite imagery 🛰️"** ⸱ +207 views ⸱ 23 Nov 2025 ⸱ 00h 31m 42s
9. **"Consumer Choice Models with PyMC Marketing"** ⸱ +202 views ⸱ 23 Nov 2025 ⸱ 00h 27m 46s
10. **"Lightning Talks"** ⸱ +198 views ⸱ 23 Nov 2025 ⸱ 00h 39m 04s
11. **"When Postgres

/r/Python
[https://redd.it/1p8ad8c
[D] Got burned by an Apple ICLR paper — it was withdrawn after my Public Comment.

So here’s what happened. Earlier this month, a colleague shared an Apple paper on arXiv with me — it was also under review for ICLR 2026. The benchmark they proposed was perfectly aligned with a project we’re working on.

I got excited after reading it. I immediately stopped my current tasks and started adapting our model to their benchmark. Pulled a whole weekend crunch session to finish the integration… only to find our model scoring absurdly low.

I was really frustrated. I spent days debugging, checking everything — maybe I used it wrong, maybe there was a hidden bug. During this process, I actually found a critical bug in their official code:

* When querying the VLM, it only passed in the image path string, not the image content itself.

The most ridiculous part? After I fixed their bug, the model's scores got even lower!

The results were so counterintuitive that I felt forced to do deeper validation. After multiple checks, the conclusion held: fixing the bug actually made the scores worse.

At this point I decided to manually inspect the data. I sampled the first 20 questions our model got wrong, and I was shocked:

* **6 out of 20 had clear GT errors.**
* The pattern

/r/MachineLearning
https://redd.it/1p82cto
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/1p8gniu
I built a tool that automatically cleans unused dependencies from Python projects.

I built a tool that automatically cleans unused dependencies from Python projects. It's called Depcleaner and you can easily get started by reading it's PYPI or Github page!
https://pypi.org/project/depcleaner/

/r/Python
https://redd.it/1p8muey
Should I continue learning Django?

Two years ago, I started learning django and I had the very basic understanding. But then, I stopped learning and never done any coding activities untill now. Currently, I decided to start again. But most of my friends told me instead of django to learn Next.js. They said it is so easy and full-stack compared to django. But I didn't wanted to start JS from 0. I wanted to continue django because I have basic python knowledge. Since I don't have any deep idea on both of them, please guys explain to me, can I do react.js and other front-ends in django easily and other pros and cons in the two frameworks. I know the question is stupid, but try to give me your best. Am going to post it in both Django and Next sub reddits.

/r/django
https://redd.it/1p8ufiq
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