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
Best Cloud Storage for Managing and Editing Word, Excel, and PDF Documents in a Python Web App?

Hi all,

I'm building a document upload system in Python for my web app where users can upload, view, and edit documents like Word, Excel, and PDF files.

I’m trying to decide which cloud storage solution would be best for this — AWS S3, Azure Blob Storage, Google Cloud Storage, or something else?

Also, what technologies or libraries would you recommend for viewing and editing these document types directly in the app?

Thanks in advance for your suggestions!

/r/Python
https://redd.it/1ku8enh
Python cant wont play the sound file

So I just got to coding as a hobby for now, I was trying to make a file, app or whatever, that makes a funny sound when you open it and the window says "get trolled bozo"

So basically, It opens the window and says the text. But the sound isnt coming through. I also asked GPT he said that it could be somewhere else. But I set the path to where the code and sound is. Honestly I have no clue anymore but still would love to hear what went wrong and how to fix it.

This was my first code in like 5years. I made one before, a traffic light on a breadboard. But that story can wait for another time.

/r/Python
https://redd.it/1kuwwmu
🧠 Visualizing Python's Data Model: References, Mutability, and Copying Made Clear

Many Python beginners (and even experienced devs) struggle with concepts like:

* references vs. values
* mutable vs. immutable data types
* shallow vs. deep copies
* variables pointing to the same object across function calls
* recursion and the call stack

To write bug-free code, it's essential to develop the right **mental model** of how Python actually handles data and memory. Visualization can help a lot with that.

I've created a tool called [`memory_graph`](https://pypi.org/project/memory-graph/), a teaching tool and debugger aid that generates **visual graphs of Python data structures** — including shared references, nested structures, and the full call stack.

It helps answer questions like:

* “Does this variable point to the same list as that one?”
* “What part of this object is actually copied?”
* “What does the stack look like in this recursive call?”

You can generate a memory graph with a single line of code:

import memory_graph as mg
a = [4, 3, 2]
b = a
mg.show(mg.stack()) # show graph of the call stack

It also integrates with **debuggers** and **IDEs** like VSCode, Cursor AI, and PyCharm for real-time visualization while stepping through code.

Would love feedback from Python educators, learners, and tooling enthusiasts.

/r/Python
https://redd.it/1kv2y0n
Have we all been "free handing" memory management? Really?

This isn't a question so much as it's a realization on my part. I've recently started looking into what I feel like are "advanced" software engineering concepts. Right now I'm working on fine grain runtime analysis, and memory management on particular.

I've started becoming acquainted with pyroscope, which is great and I highly recommend it. But pyroscope doesn't come with memory management for python. Which is surprising to me given how popular python is. So I look into how folks do memory analysis in python. And the leading answer is memray, which is great and all. But memray was released in 2022.

What were we doing before that? Guesswork and vibes? Really? That's what I was doing, but what about the rest of y'all? I've been at this for a decade, and it's shocking to me that I haven't come across this problem space prior. Particularly since langagues like Go / Rust / Java (lol) make memory management much more accessible to engineers.

Bonus: here's the memray and pyroscope folks collaborating: https://github.com/bloomberg/memray/issues/445

--- EDIT ---

Here is what I mean by freehanding memory management:

Imagine you are writing a python application which handles large amounts of data. This application was written by data scientists

/r/Python
https://redd.it/1kv2tm8
Consigli per imparare Python

Ciao! Ho un esame universitario su Python dove, per altro, sono stato già bocciato una volta. In statistica ho usato RStudio e ho avuto molte difficoltà con l’apprendimento, inoltre le slide della prof non sono molto esplicative…
Chiedo consigli validi su siti/video che offrano un corso (possibilmente gratuito) per imparare e passare questa idoneità.

/r/Python
https://redd.it/1kv92e9
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/1kvgq43
Just a reminder to never blindly trust a github repo

I recently found some obfuscated code.

heres forked repo https://github.com/beans-afk/python-keylogger/blob/main/README.md

For beginners:

\- Use trusted sources when installing python scripts


EDIT: If I wasnt clear, the forked repo still contains the malware. And as people have pointed out, in the words of u/neums08 the malware portion doesn't send the text that it logs to that server. It fetches a chunk of python code FROM that server and then blindly executes it, which is significantly worse.

/r/Python
https://redd.it/1kvdgqa
P I made a OSS alternative to Weights and Biases

Hey guys!

https://github.com/mlop-ai/mlop

I made a completely open sourced alternative to Weights and Biases with (insert cringe) blazingly fast performance (yes we use rust and clickhouse)

Weights and Biases is super unperformant, their logger blocks user code... logging should not be blocking, yet they got away with it. We do the right thing by being non blocking.

Would love any thoughts / feedbacks / roasts etc

/r/MachineLearning
https://redd.it/1kvdjet
P I scraped and applied to 7,932 Data Science jobs directly from corporate websites.


I realized many jobs on company career pages never appear on classic job boards, so I wrote a script that scrapes listings from 70k+ corporate.
Then I built a matching script that filters only the jobs most aligned with my CV.
Finally, I automated the application process with a script that applies to those jobs for me.
You can try it here: laboro.co


/r/MachineLearning
https://redd.it/1kvp4aw
I need a job/freelancing opportunity as a django developer| 5+ years exp | Remote | Affordable rates | Exp in Fintech, Ecomm, training, CRM, ERP, etc...

Hi,

I am a Python Django Backend Engineer with over 5+ years of experience, specializing in Python, Django, DRF(Rest Api) , Flask, Kafka, Celery3, Redis, RabbitMQ, Microservices, AWS, Devops, CI/CD, Docker, and Kubernetes.
My expertise has been honed through hands-on experience and can be explored in my project at https://github.com/anirbanchakraborty123/gkart_new.
I contributed to https://www.tocafootball.com/,https://www.snackshop.app/, https://www.mevvit.com, http://www.gomarkets.com/en/, https://jetcv.co, designed and developed these products from scratch and scaled it for thousands of daily active users as a Backend Engineer 2.

I am eager to bring my skills and passion for innovation to a new team. You should consider me for this position, as I think my skills and experience match with the profile. I am experienced working in a startup environment, with less guidance and high throughput. Also, I can join immediately.


Please acknowledge this mail.
Contact me on whatsapp/call +91-8473952066.

I hope to hear from you soon.
Email id = anirbanchakraborty714@gmail.com

/r/djangolearning
https://redd.it/1kux57r
How is the current job market for Django developers? Any recommendations on where to look for opportunities?

Greetins everyone,
I'm a Python developer focusing on Django and I'm currently exploring job opportunities. I was wondering how the job market looks these days for Django devs.
Any suggestions on job boards, platforms, or even companies that are actively hiring would be really appreciated.

Thanks in advance!

/r/django
https://redd.it/1kvola7
I'm a quadriplegic and I use Django — check out my flagship website!

Hey everyone — I only have a couple developer friends, so I’m looking for some honest feedback and ideas!

I’m a self-taught C5 quadriplegic developer working entirely without hand function. A few years ago, I invented my own systems to use the computer — I operate everything with two styluses, hotkeys, and voice commands. AND ChatGPT (makes everything I do possible and streamlined)

Over the past several months, I’ve built a bunch of Django projects — but this one is my flagship:

🔗 **MatthewRaynor.com**
💻 Portfolio • 🛍️ Store • ✍️ Blog • 🤖 AI Chatbot

I built this site to:

Showcase my projects (including my first client build — an art moving logistics system)
Sell my photography book and aluminum prints
Share my story and recovery journey (I'm currently living in a nursing home)
Host a motivational AI chatbot (open-sourced and pluggable via widget)
Run a personal fundraiser to help me transition back to independent living

Everything is full-stack Django, styled with Bootstrap + custom SCSS. The chatbot uses OpenAI and a JSON knowledge base. I’ve also used Stripe, Google SSO, Docker, Heroku, GitHub Actions, and built 25+ custom templates.

👨‍💻 Looking for:

Honest technical or UX feedback
Suggestions for improving employability
Ideas for getting

/r/django
https://redd.it/1kver0d
I need a job/freelancing opportunity as a django developer| 5+ years exp | Remote | Affordable rates | Exp in Fintech, Ecomm, training, CRM, ERP, etc...

Hi,

I am a Python Django Backend Engineer with over 5+ years of experience, specializing in Python, Django, DRF(Rest Api) , Flask, Kafka, Celery3, Redis, RabbitMQ, Microservices, AWS, Devops, CI/CD, Docker, and Kubernetes.
My expertise has been honed through hands-on experience and can be explored in my project at https://github.com/anirbanchakraborty123/gkart_new.
I contributed to https://www.tocafootball.com/,https://www.snackshop.app/, https://www.mevvit.com, http://www.gomarkets.com/en/, https://jetcv.co, designed and developed these products from scratch and scaled it for thousands of daily active users as a Backend Engineer 2.

I am eager to bring my skills and passion for innovation to a new team. You should consider me for this position, as I think my skills and experience match with the profile. I am experienced working in a startup environment, with less guidance and high throughput. Also, I can join immediately.


Please acknowledge this mail.
Contact me on whatsapp/call +91-8473952066.

I hope to hear from you soon.
Email id = anirbanchakraborty714@gmail.com

/r/djangolearning
https://redd.it/1kux3au
Single process, multiple interpreters, no GIL contention - pre-Python3.12

Hey y'all. Over the past week I figured out how to run subinterpreters without a locking GIL in py3.8. Longish post here about how - https://basisrobotics.tech/2025/05/26/python/ but TL;DR:

1. Use `dlmopen` to manually open `libpython3.8.so` for each interpreter you like

2. Find a way to inject the pthread_ APIs into that handle

3. Fix a bunch of locale related stuff so that numpy and other things import properly

4. Don't actually do this, why would you want to do this, it's probably going to break some mystery way anyhow

/r/Python
https://redd.it/1kvy7nf
Codel: Search code from all over the internet

This is an attempt of making a useful website people can use and publishing it, enjoy!

codel-search.vercel.app

Here's the github link too!

\-> https://github.com/usero1a/codel-python-public

/r/flask
https://redd.it/1kw0ngz
Tuesday Daily Thread: Advanced questions

# Weekly Wednesday Thread: Advanced Questions 🐍

Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.

## How it Works:

1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.

## Guidelines:

* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.

## Recommended Resources:

* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.

## Example Questions:

1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the

/r/Python
https://redd.it/1kw9et4
MicroPie (ultra thin ASGI framework) version 0.9.9.8 Released

Few days ago I released the latest 'stable' version of my MicroPie ASGI framework. MicroPie is a fast, lightweight, modern Python web framework that supports asynchronous web applications. Designed with flexibility and simplicity in mind.

Version 0.9.9.8 introduces minor bug fixes as well as new optional dependency. MicroPie will now use orjson (if installed) for JSON responses and requests. MicroPie will still handle JSON data the same if orjson is not installed. It falls back to json from Python's standard library.

We also have a really short Youtube video that shows you the basic ins and outs of the framework: https://www.youtube.com/watch?v=BzkscTLy1So

For more information check out the Github page: https://patx.github.io/micropie/

/r/Python
https://redd.it/1kwd9ml
CometChat API integration for Django

So for a little bit of background, I am currently an intern and I was tasked with choosing a backend framework for a new project. My co-interns are more comfortable with Python (due to school projects) so they want to go with Django. However, my supervisor is more on Laravel/PHP. I was considering to go with Laravel/PHP for the guidance advantages. My co-interns and I did learn Laravel/PHP but some of them are really struggling since we are only given a week to take everything in.

We had a discussion and my supervisor wants to know if CometChat API would be compatible with Django. I have been researching and the only resources I could find were with Laravel/PHP. My supervisor needs a final answer regarding the chosen backend framework (Django or Laravel) tomorrow, so I really need advice from experts who have more experience.

/r/django
https://redd.it/1kwccpq
Skylos- Another dead code sniffer (but hear me out)

Hey everyone! 👋

We've been working on Skylos, a Python static analysis tool that helps you find and remove dead code from your projs (again.....). We are trying to build something that actually catches these issues faster and more accurately (although this is debatable because different tools catch things differently). The project was initially written in Rust, and it flopped, there were too many false positives and the speed was just 2 seconds faster than vulture, a close competitor. Now we have completely rewritten the entire codebase in Python. We have also included how we do our benchmarking, so any feedback is welcome. It can be found in the root directory titled BENCHMARK.md

# What Skylos Does:

Detects unreachable functions and methods
Finds unused imports (even aliased ones)
Identifies unused classes
Spots unused variables
Detects unused parameters (just added this!)
Smarter heuristics to avoid false positives

# Target Audience:

Python developers working on medium to large codebases
Teams looking to reduce technical debt
Open source maintainers who want to keep their projects clean
Anyone tired of manually searching for dead code

# Key Features:

bash
# Basic usage
skylos /path/to/your/project



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