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
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/1l0bcrd
Tired of tracing code by hand?

I used to grab a pencil and paper every time I had to follow variable changes or loops.

So I built DrawCode – a web-based debugger that animates your code, step by step.
It's like seeing your code come to life, perfect for beginners or visual learners.

Would appreciate any feedback!

/r/Python
https://redd.it/1kzq9vi
Hosting django web app on Hostinger

Can anyone help me how to host django web app in hostinger?
Client purchased Hostinger KVM 2 plan.

/r/django
https://redd.it/1l062a3
Python Object Indexer

I built a package for analytical work in Python that indexes all object attributes and allows lookups / filtering by attribute. It's admittedly a RAM hog, but It's performant at O(1) insert, removal, and lookup. It turned out to be fairly effective and surprisingly simple to use, but missing some nice features and optimizations. (Reflect attribute updates back to core to reindex, search query functionality expansion, memory optimizations, the list goes on and on)

It started out as a minimalist module at work to solve a few problems in one swoop, but I liked the idea so much I started a much more robust version in my personal time. I'd like to build it further and be able to compete with some of the big names out there like pandas and spark, but feels like a waste when they are so established

Would anyone be interested in this package out in the wild? I'm debating publishing it and doing what I can to reduce the memory footprint (possibly move the core to C or Rust), but feel it may be a waste of time and nothing more than a resume builder.

/r/Python
https://redd.it/1l0dum0
flask-security - Does anyone tried to embed a "change email" or "change password" form only in more general template ?


Rather than having a specific page to permit users to change their email (which is the default behaviour of flask-security), I would like to embed the html form in a more versatile template (user details where user can adjust any of its data).

I did this and it kinda work but... When submiting the email change request, the app systematicaly redirects to the default "change email" flask-security page. I should add that the confirmation email has already been sent at that moment.

I can't block the loading of the default template or force the redirection after submiting the embeded form.

Any clue ?

/r/flask
https://redd.it/1kz69ck
audio file to grayscale image

Hi, I'm trying to replicate this blender visualization. I dont understand how to convert an audio file into the image text that the op is using. It shouldnt be a spectrogram as blender is the program doing the conversion. so im not sure what the axes are encoding.

https://x.com/chiu\_hans/status/1500402614399569920

any help or steps would be much appreciated


/r/Python
https://redd.it/1l0fses
relation "{my app name}{my model name}" does not exist

Hi,

I'm working on a multilingual site, I've created models for languages courses, and they used to work fine, but as I'm working I found out that I need to add a couple more models to it so that I can have an api that looks like this:

{
"id": 1,
"langProgram": "English Program",
"courses": [
{
"id": 1,
"translations": [
{
"language
code": "en",
"title": "English for School Students",
"description": {


/r/django
https://redd.it/1l0sc4n
Have Erasmus+ scholarship and I'm looking for a 2-month internship in any EU country

Hello everyone 👋
I’m a final-year SWE student graduating in early July.

I’ve secured an Erasmus+ scholarship and I'm currently looking for a two-month internship opportunity where I can grow both technically and professionally.

I'm open to any tech role since I’m just starting my career, I’m eager to gain experience in anything I work on. That said, I’d love something backend-related with Django, since I really enjoy working with it. My graduation project is actually a hospital management system built with DRF and Next.js.

Right now, I’m doing a remote internship with a U.S. based company, but I want to make the most of the Erasmus+ program to expand my skills and network.

I just need a company to send me an acceptance letter and erasmus and I will take care of everything else.

I’d really appreciate any support or referrals 🙏

/r/django
https://redd.it/1l0n67m
Every time I touch settings.py, I age 3 years.

Why does configuring Django feel like diffusing a bomb with a blindfold on… while it’s also on fire… and your cat is stepping on the keyboard? Meanwhile, Node devs just vibe with dotenv. 😂 Let's unite, scream into the void, and pretend we totally understand ALLOWED_HOSTS.

/r/django
https://redd.it/1l0sxr7
Monday Daily Thread: Project ideas!

# Weekly Thread: Project Ideas 💡

Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.

## How it Works:

1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.

## Guidelines:

* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.

# Example Submissions:

## Project Idea: Chatbot

**Difficulty**: Intermediate

**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar

**Description**: Create a chatbot that can answer FAQs for a website.

**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)

# Project Idea: Weather Dashboard

**Difficulty**: Beginner

**Tech Stack**: HTML, CSS, JavaScript, API

**Description**: Build a dashboard that displays real-time weather information using a weather API.

**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)

## Project Idea: File Organizer

**Difficulty**: Beginner

**Tech Stack**: Python, File I/O

**Description**: Create a script that organizes files in a directory into sub-folders based on file type.

**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)

Let's help each other grow. Happy

/r/Python
https://redd.it/1l13tl7
D Self-Promotion Thread

Please post your personal projects, startups, product placements, collaboration needs, blogs etc.

Please mention the payment and pricing requirements for products and services.

Please do not post link shorteners, link aggregator websites , or auto-subscribe links.

\--

Any abuse of trust will lead to bans.

Encourage others who create new posts for questions to post here instead!

Thread will stay alive until next one so keep posting after the date in the title.

\--

Meta: This is an experiment. If the community doesnt like this, we will cancel it. This is to encourage those in the community to promote their work by not spamming the main threads.

/r/MachineLearning
https://redd.it/1l16j5k
ayu - a pytest plugin to run your tests interactively

# What My Project Does

ayu is a pytest plugin and tui in one.
It sends utilizes a websocket server to send test events from the pytest hooks directly to the application interface to visualize the test tree/ test outcomes/ coverage and plugins.

It requires your project to be uv-managed and can be run as a standalone tool,
without the need to be installed as a dev dependency.
e.g. with:
uvx ayu


Under the hood ayu is invoking pytest commands and installing itself on the fly, e.g. uv run --with ayu pytest --co is executed to run the test collection.

You can check the source code on github: https://github.com/Zaloog/ayu

# Target Audience
Devs who want a more interactive pytest experience.

# Comparison

Other plugins which offer a tui interface e.g. pytest-tui https://github.com/jeffwright13/pytest-tui exist.
Those are only showing a interface for the results of the test runs though
and do not support for example
- searching/marking specific tests and run only marked tests
- exploring code coverage and other plugins




/r/Python
https://redd.it/1l0wgq3
Can you suggest good blog or post explainng how asyncio and gRPC works in python specially with Django

I specially do not get how loops are created and assigned to function and if you create new custom loop how to solve conflict

/r/djangolearning
https://redd.it/1l1erss
Stuck with AJAX reloading entire page...

I'm building a webapp for music streaming. Here's my base.html:

<!DOCTYPE html>
{% load static %}
<html lang="sv">
<head>
<meta charset="UTF-8">
<title>{% block title %}Stream{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>

body {
font-family: Arial, sans-serif;
background-color: white;
margin: 0;
padding-top: 56px;
padding-bottom: 100px;


</style>
</head>
<body>

<!-- Navbar -->
<nav id="site-navbar"

/r/djangolearning
https://redd.it/1kxoyfo
How local variables work in Python bytecode

Hi! I posted several months back after wrestling with local versus global identifiers in the Python interpreter I'm building from scratch.

I wanted to share another post that goes deeper into local variables: how the bytecode compiler tracks local identifiers, how these map to slots on the execution stack, and how the runtime VM doesn't even need to know the actual variable names.

If you're interested in how this works under the hood, I hope you find this one helpful: https://fromscratchcode.com/blog/how-local-variables-work-in-python-bytecode/

Please let me know if you have any questions or suggestions!

/r/Python
https://redd.it/1l1ilq0
Introducing MEINE 🌒: A TUI-Based File Manager & Command Console Built with Python

> Hey everyone,
>
> I’m excited to share MEINE — a personal project where I experimented with asynchronous programming, modular design, and terminal UIs. MEINE is a feature-rich file manager and command console that leverages regex-based command parsing to perform tasks like deleting, copying, moving, and renaming files, all within a dynamic TUI. Here are some highlights:
>
> - Regex-Based Commands: Easily interact with files using intuitive command syntaxes.
> - Reactive TUI Directory Navigator: Enjoy a modern terminal experience with both keyboard and mouse support.
> - Live Command Console: See file system operations and system state changes in real time.
> - Asynchronous and Modular Architecture: Built with asyncio, aiofiles, and other libraries for responsiveness and extensibility.
> - Customizable Theming and Configurations: Use CSS themes and JSON-based settings for a personalized workflow.
> - Plugin-Ready Design: Extend the project with your own functionalities without modifying the core.
>
> I built MEINE because I wanted to explore new paradigms in terminal application design while keeping the user experience engaging. I’d love to hear your thoughts—any feedback, suggestions, or ideas for improvements are greatly appreciated!
>
> Check out the repository and don't forget to star the

/r/Python
https://redd.it/1l18f3h
Open source CLI tool for CodeAct agents


Hey everyone.

Just released Xerus - the CLI tool that runs CodeAct agents powered by HuggingFace Smolagents.

# What my project does:

Like OpenAI Codex or Claude Code, but you can use open-source models like Deepseek R1 0528 or Llama 4.

### Cool features:
- Run different models for different tools (eg. cheap model for web search, powerful one for analysis)

- Add MCP servers in Claude Desktop format - grab them from Glama or Smithery.

- 100% Python code

- Agentic system configuration in one file. Easy to tweak and test different models combination.


# Target Audience

- Data scientists who want to automate repetitive tasks and workflows

- AI/ML engineers building agentic systems and automation pipelines

- Open-source enthusiasts who prefer local models over proprietary APIs

- Researchers who need flexible, customizable AI agents for experiments

- Enterprise developers wanting to avoid vendor lock-in with proprietary tools

- Students/academics learning about agentic systems and AI automation


# Comparison

## vs. OpenAI Codex/GitHub Copilot:

- Price - Run with open-source models
- No vendor lock-in - Choose any model you want
- Privacy - Code execution stays on your machine
- Customizable - Full control over the agent behavior
- Smart routing - Use different models for different tools

## vs. Claude Code:
- Open-source models - Not limited to Anthropic's models
- Cost

/r/Python
https://redd.it/1l1quel
D TMLR paper quality seems better than CVPR, ICLR.

I found that quality and correctness-wise TMLR papers seem to be be better than CVPR and ICLR papers on an average with the latter having huge variance in the paper quality. Do people think so as well? If so, why?

/r/MachineLearning
https://redd.it/1l1kttb