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
FastAPI’s creator on the framework’s popularity, FastAPI Cloud, self-taught developers, and more

Hi there! I’m a huge fan of FastAPI for its focus on developer experience. This year it became the most popular Python framework, which comes as no surprise.

Recently I had the chance to chat with Sebastián Ramírez, the creator of FastAPI. We talked about why it became so popular since its launch seven years ago, what’s next on the roadmap, FastAPI Cloud, the impact of the faster CPython initiative, and being a self-taught developer (yes, he’s self-taught!). We also talked about that famous tweet about companies asking for more years of experience with a framework than it’s even existed.

Sebastián was super nice, kind and humble. I didn't expect someone so popular to be so down-to-earth.

I think there are some useful takeaways here for other devs in this community, so I'm sharing the link below. I welcome any feedback for how I can make these interviews better.

https://youtu.be/iaDRYUQ0OMM

/r/Python
https://redd.it/1op2dut
Cleanest way to handle a dummy or no-op async call with the return value already known?

Since there doesn't appear to be an async lambda, what's the cleanest way you've found to handle a batch of async calls where the number of calls are variable?

An example use case is that I have a variable passed into a function and if it's true, then I do an additional database look-up.

Real world code:

        emails, confirmed = await asyncio.gather(
            self._get_emails_for_notifications(),
            (
                self._get_notification_email_confirmed()
                if exclude_unconfirmed_email
                else asyncio.sleep(0, True)
            ),
        )
        if not emails or not confirmed:
            raise NoPrimaryNotificationEmailError(self.user_id)
        return emails[0]

Using a sleep feels icky. Is this really the best approach?

/r/Python
https://redd.it/1opdok1
Nuttiest 1 Line of Code You have Seen?

Quality over quantity with chained methods, but yeah I'm interested in the maximum set up for the most concise pull of the trigger that you've encountered

/r/Python
https://redd.it/1ooysmw
htmx is back with version 4.0 - the fetch()ening

So even though Carson said that 2.0 is the final version and there will not be version 3.0, he didn’t lie - it's version 4.0.

https://preview.redd.it/f15rokhuvmzf1.png?width=577&format=png&auto=webp&s=925c3c3689333134a1f2dcb5aaee737f1dc0f7bd

There are some cool backstage enhancements and also some breaking changes if you want to use the new version. But some really fix the annoying quirks.

I know lots of Django folks use the library, so I thought I’ll post it here. I know I use it today almost on all my new projects when fit.

Official announcement here: https://htmx.org/essays/the-fetchening/
I wrote a short migration piece with some extra unneeded info on Medium here: https://medium.com/@alonwo/htmx-4-0-the-fetchening-a-developers-guide-to-what-s-actually-changing-28fb80b36bd9

/r/django
https://redd.it/1opy4yv
Support for Python OCC

I have been trying to get accustomed to Python OCC, but it seems so complicated and feels like I am building my own library on top of that.

I have been trying to figure out and convert my CAD Step files into meaningful information like z
Counterbores, Fillets, etc. Even if I try to do it using the faces, cylinders, edges and other stuff I am not sure what I am doing is right or not.


Anybody over here, have any experience with Python OCC?

/r/Python
https://redd.it/1oq1isg
[R][N] TabPFN-2.5 is now available: Tabular foundation model for datasets up to 50k samples

TabPFN-2.5, a pretrained transformer that delivers SOTA predictions on tabular data without hyperparameter tuning is now available. It builds on TabPFN v2 that was released in the [Nature](https://www.nature.com/articles/s41586-024-08328-6) journal earlier this year.

Key highlights:

* 5x scale increase: Now handles 50,000 samples × 2,000 features (up from 10,000 × 500 in v2)
* SOTA performance: Achieves state-of-the-art results across classification and regression
* Rebuilt API: New REST interface & Python SDK with dedicated fit & predict endpoints, making deployment and integration significantly more developer-friendly

Want to try it out? TabPFN-2.5 is available via an [API](https://docs.priorlabs.ai/api-reference/getting-started) and via a package on [Hugging Face](https://huggingface.co/Prior-Labs).

We welcome your feedback and discussion! You can also join the discord [here](https://discord.com/invite/VJRuU3bSxt).

/r/MachineLearning
https://redd.it/1oq1gq1
edge-tts suddenly stopped working on Ubuntu (NoAudioReceived error), but works fine on Windows

Hey everyone,

I’ve been using the **edge-tts** Python library for text-to-speech for a while, and it has always worked fine. However, it has recently stopped working on **Ubuntu** machines — while it still works perfectly on **Windows,** using the same code, voices, and parameters.

Here’s the traceback I’m getting on Ubuntu:

NoAudioReceived Traceback (most recent call last)
/tmp/ipython-input-1654461638.py in <cell line: 0>()
13
14 if __name__ == "__main__":
---> 15 main()

10 frames
/usr/local/lib/python3.12/dist-packages/edge_tts/communicate.py in __stream(self)
539
540 if not audio_was_received:
--> 541 raise NoAudioReceived(


/r/Python
https://redd.it/1oq1hvw
This week Everybody Codes has started (challange similar to Advent Of Code)

Hi everybody!

This week Everybody Codes has started (challenge similar to Advent Of Code). You can practice Python solving algorithmic puzzles. This is also good warm-up before AoC ;)

This is second edition of EC. It consists of twenty days (three parts of puzzles each day).

Web: Everybody.codes \- there is also reddit forum for EC problems.

I encourage everyone to participatre and compete!

/r/Python
https://redd.it/1oqbg2q
Best books to be a good Python Dev?

Got a new offer where I will be doing Python for backend work. I wanted to know what good books there are good for making good Python code and more advance concepts?

/r/Python
https://redd.it/1oqbwtg
How would you suggest learning Django-Rest-Framework the proper way?

If you all were to start again, what would be your approach? I am having interest in drf but doesnot properly know how to learn it. Give me some advice.

/r/django
https://redd.it/1oq5m27
Business problem to Code

Hi,

Question: With which name should I search on Google to learn about these things.

Translating a business problem into code.


Context:

I am kinda new to development. It's been like 8 months now.

There are many buzz words I have came across like system design, design principles ,design patterns, UML, BRD.

System design is most prominent among those, but when I see about it, it more seems on the deployment side rather then coding side.

For us fault tolerance, availability, load balancers , cdns, read and write only databases are not that much of a concern because we have really like just 20 users. Coolify is sufficient for us, we containerise and then directly deploy.


What really is things that I need help with is:

1. Logging issues, if some part / feature of code is not working.

2. Searching efficiently in the data. ( Eg: elasticsearch, postgres full text search)

3. Converting business scenario/ problem into database schema and then coding.

4. Be confident for updates ( recently started writing tests, which makes me more confident in my code).

5. Making short lived branches and having strategy for git, automatic tests and builds.

6. Organizing code into

/r/django
https://redd.it/1oqjn0z
💻 Django + React Developer | Built www.retailhubpro.com
| Open for freelance projects & collaborations

Hey everyone 👋

I’m a full-stack developer specializing in Django (backend) and React (frontend).
I recently launched **www.retailhubpro.com** — a modern Point of Sale and inventory management web app built with Django REST Framework, React, and M-Pesa integration for payments.

Now that the project is live, I’m open to freelance work and collaborations on:

SaaS or dashboard-based web apps
APIs and payment integrations (M-Pesa, Stripe, etc.)
Django REST + React or Next.js builds
System redesigns or feature upgrades

I love working on practical, business-focused software and enjoy turning ideas into polished, scalable products.

If you’re looking to build something or need an extra hand on your team, feel free to reach out or check out my work at **www.retailhubpro.com**.

Let’s build something great 🚀

/r/django
https://redd.it/1opxx55
D CVPR submission risk of desk reject

I just got an email from CVPR saying

"For CVPR 2026, all authors are required to have a complete OpenReview profile and a complete author enrollment."


But I don't understand. What is the meaning of "Complete OpenReview Profile"? I went through tens of reviews and submissions this year, and suddenly it is incomplete?

Anyone has an idea about this??

/r/MachineLearning
https://redd.it/1oqmdm3
Trying to understand how to do “Business Process Automation” with Python (not RPA stuff)

Hey everyone,

So I’m a bit stuck and could really use some guidance.

I’ve been building “automation systems” for a while now, using low-code tools like Make, Zapier, and Pipedream. Basically, connecting multiple SaaS platforms (Airtable, ClickUp, Slack, Instantly, Trello, Gmail, etc...) into one workflow that runs a whole business process end-to-end.

For example, I built a **Client Lifecycle Management System** that takes a lead from form submission → qualification → assigning → notifications → proposals → onboarding... all automatically (using Make).

Now I’m trying to move away from Make/Zapier and do all that with **Python,** because I figured out that companies are looking for engineers who know how to do both (pure code/low-code), but I’m getting **LOST** because most people talk about **RPA (robotic process automation)** when they mention **automation**, and that’s not what I’m talking about.
I don’t want to automate **desktop clicks** or **Excel macros** — I want to automate **SaaS workflows** through APIs.

So basically:

* I want to learn how to build BPA (Business Process Automation) systems **using pure coding (Python** → Frameworks, libraries, concepts\*\*)\*\*.
* I already understand how the workflows work logically (I’ve built them visually in Make).
* I just want to know how to do the same with Python APIs, webhooks, scheduling, database handling, etc.
* Think of it as: “Make/Zapier but **pure** **code**.”

If anyone here has gone

/r/django
https://redd.it/1oqura8
API Designing Help. Better Approach

Hi,

1. Right now, my APIs are mostly page wise, not feature wise. So, my frontend guys asked me to just give them a single API for everything that will be on that page.


Example:

* 1. A page has following Data
* Order
* Place Date, ship date, agent who assisted in placing order, other meta data.
* permissions ( if order can be edited by the logged in user). We are actually sending all these permissions from the backend itself, so that frontend can accordingly show buttons to user.
* Product Details:
* each item, name, quantitiy.
* permissions ( if product quantity can be modified by the logged in user)
* payment details
* payment date, payment method etc.
* refund details
* refund amount, processing date, etc

This is just an example, in my real case there are so many things being shown on a single page, and it feels important to

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