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
Things to learn in django after basics

I am new to django . I have learn the basic and also made some small project . How should I improve my django skills more . What are the things or tool which I might have missed in basic and are required.
Please suggest me

/r/django
https://redd.it/1kutgxw
[R] We taught generative models to segment ONLY furniture and cars, but they somehow generalized to basically everything else....

/r/MachineLearning
https://redd.it/1kuq3h0
Dedent multiline string literal (a.k.a. triple quoted string literal)

Dedenting multiline string literal is discussed (again).

A poll of ideas is being run before the PEP is written.
If you're interested in this area, please read the thread and vote.

Poll: https://discuss.python.org/t/pre-pep-d-string-dedented-multiline-strings-with-optional-language-hinting/90988/54

Ideas:

1. Add str.dedent() method that same to textwrap.dedent() and do not modify syntax at all. It doesn't work nicely with f-string, and doesn't work with t-string at all.
2. Add d-string prefix (d"""). It increase combination of string prefixes and language complexity forever.
3. Add from __future__ import. It will introduce breaking change in the future. But transition can be helped by tools like 2to3 or pyupgrade.

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