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
Electron/Tauri React-Like Python GUI Lib (Components, State, Routing, Hot Reload, UI) BasedOn PySide

**🔗 Repo Link**
[GitHub - WinUp](https://github.com/mebaadwaheed/winup)

**🧩 What My Project Does**
This project is a framework inspired by React, built on top of PySide6, to allow developers to build desktop apps in Python using components, state management, Row/Column layouts, and declarative UI structure. Routing and graphs too. You can define UI elements in a more readable and reusable way, similar to modern frontend frameworks.
There might be errors because it's quite new, but I would love good feedback and bug reports contributing is very welcome!

**🎯 Target Audience**

* Python developers building desktop applications
* Learners familiar with React or modern frontend concepts
* Developers wanting to reduce boilerplate in PySide6 apps This is intended to be a usable, maintainable, mid-sized framework. It’s not a toy project.

**🔍 Comparison with Other Libraries**
Unlike raw PySide6, this framework abstracts layout management and introduces a proper state system. Compared to tools like DearPyGui or Tkinter, this focuses on maintainability and declarative architecture.
It is **not** a wrapper but a full architectural layer with reusable components and an update cycle, similar to React. It also has Hot Reloading- please go the github repo to learn more.

**pip install winup**

**💻 Example**

# hello_world.py


/r/Python
https://redd.it/1lh12rc
How do I deal with STATICFILES_STORAGE depreciation while migrating to django 5.2?

Since STATICFILES\_STORAGE is depreciated as of django 5.2 [see here](https://docs.djangoproject.com/en/5.2/releases/4.2/#custom-file-storages). I am wondering what effects would it have if I migrate to django 5.2. As far as I can understand I just need to use a new way of defining static files storage in my settings files. Something like this:

{
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
},
}

Do I need to change the views as well? In my views I fetch this setting by

from django.contrib.staticfiles.storage import staticfiles_storage

Which this still exists in django 5.2.

So just change the settings file and keeps the views as is. Do you see any problem here?

/r/djangolearning
https://redd.it/1leeln7
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/1lhag85
Just open-sourced Eion - a shared memory system for AI agents

Hey everyone! I've been working on this project for a while and finally got it to a point where I'm comfortable sharing it with the community. Eion is a shared memory storage system that provides unified knowledge graph capabilities for AI agent systems. Think of it as the "Google Docs of AI Agents" that connects multiple AI agents together, allowing them to share context, memory, and knowledge in real-time.

When building multi-agent systems, I kept running into the same issues: limited memory space, context drifting, and knowledge quality dilution. Eion tackles these issues by:

Unifying API that works for single LLM apps, AI agents, and complex multi-agent systems 
No external cost via in-house knowledge extraction + all-MiniLM-L6-v2 embedding 
PostgreSQL + pgvector for conversation history and semantic search 
Neo4j integration for temporal knowledge graphs 

Would love to get feedback from the community! What features would you find most useful? Any architectural decisions you'd question?

GitHub: https://github.com/eiondb/eion
Docs: https://pypi.org/project/eiondb/

/r/Python
https://redd.it/1lhbsgi
Struggling to find a remote Django job from the Middle East — any advice?

Hey everyone,

I’ve been working as a backend developer for 2 years, mainly using Django, DRF, PostgreSQL, and Docker. I’m based in the Middle East and have been employed full-time, but unfortunately, the pay here is very low and there’s little room for growth.

I’ve been applying to remote jobs for months now—but I still barely get shortlisted. It’s been discouraging, and I’m starting to feel stuck.

I genuinely love working with Django and backend systems. I enjoy building clean APIs, scalable architecture, and solving real problems. I just want the chance to grow and contribute to something meaningful.

Has anyone else been in a similar position? How did you break through and land your first remote opportunity? Any advice or resources would mean a lot.

Thanks for reading 🙏


/r/django
https://redd.it/1lh568b
Django Progress Bar + Django Unfold?

Hi, I would like to know if there is any recommended package or solution to implement a file upload progress bar in Django. I have a model with a field intended to store files (specifically videos), and I want to display the upload progress percentage on the frontend while the file is being uploaded to the backend. The goal is to achieve an experience similar to YouTube, where the upload progress is visually displayed in real time.
I would like this to be shown within the Django admin panel, which is using django-unfold.

/r/django
https://redd.it/1lh96wd
I built an automation to generate coding reels like Peter Stewie’s on Instagram(got 2k followers)



**What My Project Does:**


You might’ve seen those funny Instagram reels where characters like Stewie and Peter Griffin explain coding concepts to each other while gameplay runs in the background ..all with AI voices.

I built an automation that replicates that exact format.

Just send a script, and it generates a short, engaging coding reel with:

* AI voiceovers
* Character overlays
* Gameplay footage

All fully automated , no manual editing needed.

** Features:**

* Scraped and integrated AI voices
* Automated video rendering using AWS
* Optional ChatGPT support to auto-generate scripts
* Telegram interface to send scripts and receive final videos

Still improving timing and visuals, open to feedback!

**🛠️ GitHub (code + demo):** [https://github.com/Traverser25/Stewie\_it\_v1](https://github.com/Traverser25/Stewie_it_v1)

/r/Python
https://redd.it/1lhgllq
What would be the best way to share my flask app on GitHub so that anyone can self host it?

I’ve been working on a small side project that’s a simple flask web app.

The project is mainly a learning exercise for me but I also want to learn how to properly open source code.

It’s in a state at this point where I feel it’s useable and I’ve been slowly building up a proper readme for my GitHub page.

My goal is to simplify the installation process as much as possible so for now I’ve written 2 batch files that handle the installation and the execution. But I am wondering if there is a better way to go about this.

Keen to hear any advice.

/r/flask
https://redd.it/1lh3t1v
Parallel and Concurrent Programming in Python: A Practical Guide

Hey, I made a video about Parallel and Concurrent Programming in Python with threading and multiprocessing.

First we make a program which doesn't use any of those methods and after that we take advantage of those methods and see the differences in terms of performance

https://www.youtube.com/watch?v=IQxKjGEVteI

/r/Python
https://redd.it/1lhgxek
Fast, lightweight parser for Securities and Exchanges Commission Inline XBRL

Hi there, this is a niche package but may help a few people. I noticed that the SEC XBRL endpoint sometimes takes hours to update, and is missing a lot of data, so I wrote a fast, lightweight InLine XBRL parser to fix this.

https://github.com/john-friedman/secxbrl

# What my project does

Parses SEC InLine XBRL quickly using only the Inline XBRL html file, without the need for linkbases, schema files, etc.

# Target Audience

Algorithmic traders, PhD students, Quant researchers, and hobbyists.

# Comparison

Other packages such as python-xbrl, py-xbrl, and brel are focused on parsing most forms of XBRL. This package only parses SEC XBRL. This allows for dramatically faster performance as no additional files need to be downloaded, making it suitable for running on small instances such as t4g.nanos.

The readme contains links to the other packages as they may be a better fit for your usecase.

# Example

from secxbrl import parseinlinexbrl

# load data
path = '../samples/000095017022000796/tsla-20211231.htm'
with open(path,'rb') as f:
content = f.read()

# get all EarningsPerShareBasic
basic = {'val':item['_val','date':item'_context''context_period_enddate'} for item

/r/Python
https://redd.it/1lhdspc
FastAPI Guard v3.0 - Now with Security Decorators and AI-like Behavior Analysis

Hey r/Python!

So I've been working on my FastAPI security library (fastapi-guard) for a while now, and it's honestly grown way beyond what I thought it would become. Since my last update on r/Python (I wasn't able to post on r/FastAPI until today), I've basically rebuilt the whole thing and added some pretty cool features.

What My Project Does:

Still does all the basic stuff - IP whitelisting/blacklisting, rate limiting, penetration attempt detection, cloud provider blocking, etc. But now it's way more flexible and you can configure everything per route.

What's new:

The biggest addition is Security Decorators. You can now secure individual routes instead of just using the global middleware configuration. Want to rate limit just one endpoint? Block certain countries from accessing your admin panel? Done. No more "all or nothing" approach.

from fastapi_guard.decorators import SecurityDecorator

@app.get("/admin")
@SecurityDecorator.access_control.block_countries(["CN", "RU"])
@SecurityDecorator.rate_limiting.limit(requests=5, window=60)
async def admin_panel():
return {"status": "admin"}


Other stuff that got fixed:

- Had a security vulnerability in v2.0.0 with header injection through X-Forwarded-For. That's patched now
- IPv6 support was broken, fixed that too
- Made IPInfo completely optional - you can now use your own geo IP handler.
- Rate limiting is now proper sliding window instead of fixed window
- Other improvements/enhancements/optimizations...

Been using it in production for months

/r/Python
https://redd.it/1lhxwee
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/1li2gwg