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
Is it possible that i get typehints / auto complete for jinja html? in vsc

I was seeing a full flask course where the tutor was using pycharm, he changed the templating somthing and he was kinda getting typehints , Is this possible for vsc, I have installed jinja, jinja better but still i am not getting those


/r/flask
https://redd.it/1p1u87x
whereproc: a small CLI that tells you where a running process’s executable actually lives

I’ve been working on some small, practical command-line utilities, and this one turned out to be surprisingly useful, so I packaged it up and put it on PyPI.

What My Project Does

whereproc is a command-line tool built on top of psutil that inspects running processes and reports the full filesystem path of the executable backing them. It supports substring, exact-match, and regex searches, and it can match against either the process name or the entire command line. Output can be human-readable, JSON, or a quiet/scripting mode that prints only the executable path.

whereproc answers a question I kept hitting in day-to-day work: "What executable is actually backing this running process?"

Target Audience

whereproc is useful for anyone:

debugging PATH issues
finding the real location of app bundles / snap packages
scripting around PID or exe discovery
process verification and automation

Comparison

There are existing tools that overlap with some functionality (ps, pgrep, pidof, Windows Task Manager, Activity Monitor, Process Explorer), but:

- whereproc always shows the resolved executable path, which many platform tools obscure or hide behind symlinks.
- It unifies behavior across platforms. The same command works the same way on Linux, macOS, and Windows.
- It provides multiple match modes (substring, exact, regex, command-line search) instead of

/r/Python
https://redd.it/1p1p990
how obvious is this retry logic bug to you?

I was writing a function to handle a 429 error from NCBI API today, its a recursive retry function, thought it looked clean but..

well the code ran without errors, but downstream I kept getting None values in the output instead of the API data response. It drove me crazy because the logs showed the retries were happening and "succeeding."

Here is the snippet (simplified).



def fetchdatawithretry(retries=10):
try:
return api
client.getdata()
except RateLimitError:
if retries > 0:
print(f"Rate limit hit. Retrying... {retries} left")
time.sleep(1)

fetch
datawithretry(retries - 1)
else:


/r/Python
https://redd.it/1p1yzzd
Flask-Security vs a la carte (login, authorize, dance)?

I've used flask-login for many years, bolting on my own roles/permissions system, email authentication, password management, etc. Am looking to finally make an upgrade to some standard tools, but am having trouble deciding between the all-in-one pallets project flask-security and an a la carte approach with flask-login, flask-authorize, and flask-dance (plus probably others).

Have you used either stack? What did you like/dislike about it?

/r/flask
https://redd.it/1p25oya
Latest Python Podcasts & Conference Talks (week 47, 2025)

Hi r/Python!

As part of Tech Talks Weekly, I'll be posting here every week with all the latest Python conference talks and podcasts. To build this list, I'm following over 100 software engineering conferences and even more podcasts. This means you no longer need to scroll through messy YT subscriptions or RSS feeds!

In addition, I'll periodically post compilations, for example a list of the most-watched Python talks of 2025.

The following list includes all the Python talks and podcasts published in the past 7 days (2025-11-13 - 2025-11-20).

Let's get started!

# 1. Conference talks

# PyData Seattle 2025

1. **"Khuyen Tran & Yibei Hu - Multi-Series Forecasting at Scale with StatsForecast | PyData Seattle 2025"** ⸱ +200 views ⸱ 17 Nov 2025 ⸱ 00h 39m 36s
2. **"Sebastian Duerr - Evaluation is all you need | PyData Seattle 2025"** ⸱ +200 views ⸱ 17 Nov 2025 ⸱ 00h 43m 28s
3. **"Bill Engels - Actually using GPs in practice with PyMC | PyData Seattle 2025"** ⸱ +200 views ⸱ 17 Nov 2025 ⸱ 00h 44m 15s
4. **"Everett Kleven - Why Models Break Your Pipelines | PyData Seattle 2025"** ⸱ +200 views ⸱ 17 Nov 2025 ⸱ 00h 36m 04s
5. **"Ojas Ankurbhai Ramwala - Explainable AI for Biomedical Image Processing | PyData Seattle 2025"** ⸱ +100 views ⸱ 17 Nov 2025 ⸱

/r/Python
https://redd.it/1p23zun
Youtube channels to learn django

Suggest some good yt channels to learn django

/r/django
https://redd.it/1p2112e
Why do we repeat type hints in docstrings?

I see a lot of code like this:



def foo(x: int) -> int:
"""Does something

Parameters:
x (int): Description of x

Returns:
int: Returning value
"""

return x


Isn’t the type information in the docstring redundant? It’s already specified in the function definition, and as actual code, not strings.

/r/Python
https://redd.it/1p2c50c
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/1p2jgiv
What’s the best Python library for creating interactive graphs?

I’m currently using Matplotlib but want something with zoom/hover/tooltip features. Any recommendations I can download? I’m using it to chart backtesting results and other things relating to financial strategies. Thanks, Cheers

/r/Python
https://redd.it/1p2jdj9
PyTogether - Google Docs for Python (free and open-source, real-time browser IDE)

For the past 4 months, I’ve been working on a full-stack project I’m really proud of called PyTogether (pytogether.org).



# What My Project Does

It is a real-time, collaborative Python IDE designed with beginners in mind (think Google Docs, but for Python). It’s meant for pair programming, tutoring, or just coding Python together. It’s completely free. No subscriptions, no ads, nothing. Just create an account, make a group, and start a project. Has proper code-linting, extremely intuitive UI, autosaving, drawing features (you can draw directly onto the IDE and scroll), live selections, and voice/live chats per project. There are no limitations at the moment (except for code size to prevent malicious payloads). There is also built-in support for libraries like matplotlib.

Source code: https://github.com/SJRiz/pytogether



# Target Audience

It’s designed for tutors, educators, or Python beginners.



# Comparison With Existing Alternatives

Why build this when Replit or VS Code Live Share already exist?

Because my goal was simplicity and education. I wanted something lightweight for beginners who just want to write and share simple Python scripts (alone or with others), without downloads, paywalls, or extra noise. There’s also no AI/copilot built in, something many teachers and learners actually prefer. I also focused on a communication-first approach, where the IDE

/r/Python
https://redd.it/1p2ld03
Can someone post an example of a flask app that has blueprints with multiple models.py in each blueprint folder using the current working version of flask with html as the front end ?

I am getting an error in my flask app rather then posting my long convoluted error I figure I would try to see if there something wrong with my app by seeing an working example of a flask app with html as the front end with blueprints with multiple models.py files in each blueprint folder using the current working version of flask. Does anyone have working example ? Could someone link there github or something else?

My web app was working before the multiple models.py files.

Thank you.

/r/flask
https://redd.it/1p2ninn
Tutorial Processing 10K events/sec with Python WebSockets and time-series storage

Built a guide on handling high-throughput data streams with Python:

\- WebSockets for real-time AIS maritime data

\- MessagePack columnar format for efficiency

\- Time-series database (4.21M records/sec capacity)

\- Grafana visualization

Full code: https://basekick.net/blog/build-real-time-vessel-tracking-system-arc

Focuses on Python optimization patterns for high-volume data.

/r/Python
https://redd.it/1p2ca9x
Looking for a sanity check on an interview assignment

Looking at a new position, with a mission I do care about, but just got their take-home assignment and I am having some 2nd thoughts. I'm mostly a low-level engineer, HPC modeling and simulation and signal processing and the employer knows this. And this sort of thing isn't as the position was described.

I assume this is their standard question, regardless of the candidate:

-----

Please write code to download the current dataset, store the data server-side, create APIs that can retrieve the server-side stored data, and provide a UI to analyze it for items such as word count per department, historical changes over time, and a checksum for each department.

Only implement analysis that would provide meaningful information to the user.

Please add at least one custom metric that you believe may help inform decisions more effectively.

----

Without environment setup, they designed this to take under 6 hours. I can see it taking that long for someone who does this sort of thing every day currently, but with my background, this is completely different.

Just looking to see if I am off-base in my assessment that this is way more than 6 hours of work or if they simply expect me

/r/Python
https://redd.it/1p2wgpx
TerminalTextEffects (TTE) version 0.13.0

I saw the word 'effects', just give me GIFs

Understandable, visit the Effects Showroom first. Then come back if you like what you see.

If you want to test it in your linux terminal with uv:

ls -a | uv tool run terminaltexteffects random_effect

What My Project Does

TerminalTextEffects (TTE) is a terminal visual effects engine. TTE can be installed as a system application to produce effects in your terminal, or as a Python library to enable effects within your Python scripts/applications. TTE includes a growing library of built-in effects which showcase the engine's features.

Audience

TTE is a terminal toy (and now a Python library) that anybody can use to add visual flair to their terminal or projects. It works in the new Windows terminal and, of course, in pretty much any unix terminal.

Comparison

I don't know of anything quite like this.

Version 0.13.0

New effects:

Smoke

Thunderstorm

Refreshed effects:

Burn

Pour

LaserEtch

minor tweaks to many others.

Here is the ChangeBlog to accompany this release, with lots of animations and a little background info.

0.13.0 - Still Alive

Here's the repo: https://github.com/ChrisBuilds/terminaltexteffects

Check it out if you're interested. I appreciate new ideas and feedback.

/r/Python
https://redd.it/1p2fnvs
D How to transition to industry after an AI/ML PhD

Hey Folks!

Feeling anxious, confused and thought to reach out for some advice here.

I am 1.5 yrs out of finishing a PhD in AI/ML from USA but do not have stellar publication record.

I'm in mid thirties and kind of drained out of the whole PhD experience.

Any suggestions as to what roles I can look into to transition to full time if I am not keen on grinding out leetcode (not averse to doing leetcode but just do not want to grinding it out as a mid 20s person) and okay with a decent salary?

/r/MachineLearning
https://redd.it/1p2xvwi
Using Claude Code CLI with Django: What’s in your claude.md?

Hi everyone,

I’ve recently started using the Claude Code CLI for a Django project, and I’m trying to optimize the claude.md context file to get the best results.

For those using it, what specific instructions or project context have you added to your claude.md to make it work smoothly with Django's architecture?

Currently, I’m considering adding rules like:

1. ORM Preference: Explicit instructions to prefer the Django ORM over raw SQL or Python-side filtering.
2. Style: Enforcing Function-Based Views vs Class-Based Views.
3. Testing: Instructions to use pytest-django instead of the standard unittest.
4. Exclusions: Reminding it to ignore migrations/ files unless specifically asked to modify schemas.

Has anyone curated a "Golden Standard" claude.md for Django yet? I’d love to see examples of how you describe your apps/structure to the CLI.

Thanks!

/r/django
https://redd.it/1p3226w
How much energy does the internet use? A conversation about Django and digital sustainability

Hi all! I'm a software engineer and I’ve been getting more interested in the environmental impact of the software we build and the energy it takes to keep the internet running.

I recently recorded a conversation with Thibaud Colas, who works on Wagtail and Django and has been pushing for more awareness around digital sustainability. We talked about how much energy the web actually uses, how we can measure it, why performance ends up being an emissions issue, whether rewriting everything in Rust is the magic fix (spoiler: not really), and what kind of accountability we should expect from AI companies and cloud providers.

If you’re curious, I'm posting the link to the episode below. Happy to hear thoughts, feedback, or other perspectives from folks in this community!

https://youtu.be/t4B11C2oGNc

/r/django
https://redd.it/1p2vs66
The Right Gatekeepers: How to secure your Flask app with Flask-Security

This week I wrote a new tutorial for the publication, "Python in Plain English" on how to secure your Flask Admin dashboard with Flask-Security.

https://preview.redd.it/307axi7brl2g1.png?width=1232&format=png&auto=webp&s=4a993eacfe9f3af1b97b11ac924ae0330148f407

There were quite a few steps involved in making Flask Admin and Flask Security work well together. This included having to downgrade to Flask-Security-Too version 4.1.5. Let me know in the comments what you think. I am also using Flask-Admin 1.6.1

If you are not a Medium member you can click the "friend link" at the top of the tutorial: https://python.plainenglish.io/the-right-gatekeepers-secure-your-python-flask-app-with-flask-security-part-2-2-2cf8a7f1e667

/r/flask
https://redd.it/1p2xadr
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/1p3ek72