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
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
eCommerce - Django Oscar vs Mainstream

I've been building online stores with Django Oscar for years.

Because of that, I ended up losing touch with the more popular mainstream solutions like Shopify, WooCommerce, etc.

For those who have used both approaches (custom Django/Oscar stack vs SaaS platforms):

What do you feel are the main downsides of sticking with something like Django Oscar today?And in which cases does a mainstream solution clearly win?

/r/django
https://redd.it/1p2wwq1
The Pocket Computer: How to Run Computational Workloads Without Cooking Your Phone

https://github.com/DaSettingsPNGN/S25_THERMAL-

I don't know about everyone else, but I didn't want to pay for a server, and didn't want to host one on my computer. I have a flagship phone; an S25+ with Snapdragon 8 and 12 GB RAM. It's ridiculous. I wanted to run intense computational coding on my phone, and didn't have a solution to keep my phone from overheating. So. I built one. This is non-rooted using sys-reads and Termux (found on F-Droid for sensor access) and Termux API (found on F-Droid), so you can keep your warranty. 🔥

What my project does: Monitors core temperatures using sys reads and Termux API. It models thermal activity using Newton's Law of Cooling to predict thermal events before they happen and prevent Samsung's aggressive performance throttling at 42° C.

Target audience: Developers who want to run an intensive server on an S25+ without rooting or melting their phone.

Comparison: I haven't seen other predictive thermal modeling used on a phone before. The hardware is concrete and physics can be very good at modeling phone behavior in relation to workload patterns. Samsung itself uses a reactive and throttling system rather than predicting thermal events. Heat is continuous and temperature isn't an isolated

/r/Python
https://redd.it/1p37186
Bobtail - A WSGI Application Framework

I'm just showcasing a project that I have been working on slowly for some time.

https://github.com/joegasewicz/bobtail

# What My Projects Does

It's called Bobtail & it's a WSGI application framework that is inspired by Spring Boot.

It isn't production ready but it is ready to try out & use for hobby projects (I actually now run this in production for a few of my own projects).

# Target Audience

Anyone coming from the Java language or enterprise OOP environments.

# Comparison

Spring Boot obviously but also Tornado, which uses class based routes.



I would be grateful for your feedback, Thanks

#





/r/Python
https://redd.it/1p3c9gi
What is the best Django course today (beginner → advanced)? Books, video, blog… anything.

I’m getting back into learning Django after stopping for a while, and I want to restart with modern learning resources that match the current real-world tech stack (Django 5.x, DRF, async, AI integration, modern tooling, etc.).

I’m looking for recommendations for the best learning path from beginner to advanced, including:

Online courses
YouTube tutorials
Books
Blogs/documentation
Project-based learning resources
Anything that helped you go from “I know nothing” to job-ready

Ideally, I want resources that focus on production-level skills, not just toy apps.

If you’ve learned Django recently (2023–2025), what resources made the biggest difference for you?

Thanks in advance!

/r/django
https://redd.it/1p2tgqx
CAN SOME ONE EXPLAIN THIS?

https://programmers-haven.myshopify.com/
IM CONFUSED ABOUT WHAT THIS GUY IS TRYING TO SELL. IS THIS LEGIT?

/r/Python
https://redd.it/1p3ntd8
Need help to make small changes

Can any good person help me with my class project? I will fail if i don't do it.need to get it done asaf I need to make some changes all instructions and how to do it are written. But still i don't know much code. The stack used is python flask.

About the software

It's a simple website which has login,admin,user, posting feature. The main goal is to make it free from any cyber vulnerability. Now the software has some vulnerability pointed out by another team. They have given us a report on it and what we should do. We need to make some changes implement 2-3 basic authentication features.


Please help 🙏😭

/r/flask
https://redd.it/1p3ga4p
Is there any way to simulate a slow network connection on localhost?

When I build a Flask app and test it on localhost, can I simulate a slow connection? (For example, by a python module that allows me to determine the speed of sending data from the Flask server)

/r/flask
https://redd.it/1p3pypy
Avenv - A Minimal Virtual Environment Script for Python

# What My Project Does

This is a minimal Linux-compatible script that streamlines Python virtual environment management. It creates each environment inside a dedicated directory in your home folder and sources the activate script directly. No wrappers, no frameworks, no extra abstractions.

Workflow example:

$ avenv -m newvenv
$ source avenv new
venv

# Target Audience

Developers who want a lightweight, zero-overhead method for managing Python virtual environments. Intended for personal workflows and simple development setups, not complex production pipelines.

# Comparison

Compared to tools like virtualenvwrapper, pipenv, or poetry, this script adds no metadata, no new workflow concepts, and no dependency management. It is a thin wrapper around python -m venv that provides a predictable, minimal interface focused solely on creating and activating environments.

# Background

I built this script for my own use several years ago, and it remains the most efficient workflow I’ve used for handling Python virtual environments.

Link: https://github.com/begbaj/avenv/

/r/Python
https://redd.it/1p3rxb6
I’m building a Python-native frontend framework that runs in the browser (Evolve)

I’m currently building a personal project called Evolve \- a Python-native frontend framework using WebAssembly and a minimal JavaScript kernel to manage DOM operations.

The idea: write UI logic in Python, run it in the browser, with a reactive system (no virtual DOM).

Still early stage, - I’ll be posting progress, architecture, and demos soon.

Would love to know: would you try a Python-first frontend framework?

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