Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1m8kf09
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1m8kf09
Redditinc
Reddit Rules
Reddit Rules - Reddit
Thoughts on Cinder, performance-oriented version of Python powering Instagram
Regarding Cinder, one of their reasons for open-sourcing the code, is
"to facilitate conversation about potentially upstreaming some of this work to CPython and to reduce duplication of effort among people working on CPython performance."
This seems like an established project, that has been open-sourced for a while.
Why has some of advancement made with this project, not been up-streamed into CPython?
Especially their approach to their JIT-compiler seems super useful.
/r/Python
https://redd.it/1m8ir4e
Regarding Cinder, one of their reasons for open-sourcing the code, is
"to facilitate conversation about potentially upstreaming some of this work to CPython and to reduce duplication of effort among people working on CPython performance."
This seems like an established project, that has been open-sourced for a while.
Why has some of advancement made with this project, not been up-streamed into CPython?
Especially their approach to their JIT-compiler seems super useful.
/r/Python
https://redd.it/1m8ir4e
GitHub
GitHub - facebookincubator/cinder: Cinder is Meta's internal performance-oriented production version of CPython.
Cinder is Meta's internal performance-oriented production version of CPython. - facebookincubator/cinder
Pytest.nvim - Neovim plugin to run pytest inside a Docker container (or outside of it)
Some time ago, I built a plugin that was very useful for my daily development in Django (at my job). I believe this plugin can be helpful for others!
https://github.com/richardhapb/pytest.nvim
/r/django
https://redd.it/1m8pbe9
Some time ago, I built a plugin that was very useful for my daily development in Django (at my job). I believe this plugin can be helpful for others!
https://github.com/richardhapb/pytest.nvim
/r/django
https://redd.it/1m8pbe9
GitHub
GitHub - richardhapb/pytest.nvim: Neovim plugin for Python testing
Neovim plugin for Python testing. Contribute to richardhapb/pytest.nvim development by creating an account on GitHub.
I'm building an "API as a service" and want to know how to overcome some challenges.
Hey devs, I’m building an API service focused on scraping, and I’m running into a problem.
The main problem I'm facing is having to manually build the client-side ability to self-create/revoke API keys, expiration dates, and billing based on the number of API calls.
Is there a service focused on helping solve this problem? Do you know of anything similar?
Appreciate any recommendations!
https://preview.redd.it/o3jkm5uisvef1.png?width=2856&format=png&auto=webp&s=79f63778eb183e5ddf3456ff6c882b7837e1ad07
/r/django
https://redd.it/1m8f8yb
Hey devs, I’m building an API service focused on scraping, and I’m running into a problem.
The main problem I'm facing is having to manually build the client-side ability to self-create/revoke API keys, expiration dates, and billing based on the number of API calls.
Is there a service focused on helping solve this problem? Do you know of anything similar?
Appreciate any recommendations!
https://preview.redd.it/o3jkm5uisvef1.png?width=2856&format=png&auto=webp&s=79f63778eb183e5ddf3456ff6c882b7837e1ad07
/r/django
https://redd.it/1m8f8yb
Saw All Those Idle PCs—So I Made a Tool to Use Them
Saw a pattern at large companies: most laptops and desktops are just sitting there, barely using their processing power. Devs aren’t always running heavy stuff, and a lot of machines are just idle for hours.
What My Project Does:
So, I started this project—Olosh. The idea is simple: use those free PCs to run Docker images remotely. It lets you send and run Docker containers on other machines in your network, making use of otherwise idle hardware. Right now, it’s just the basics and I’m testing with my local PCs.
Target Audience:
This is just a fun experiment and a toy project for now—not meant for production. It’s for anyone curious about distributed computing, or who wants to tinker with using spare machines for lightweight jobs.
Comparison:
There are bigger, more robust solutions out there (like Kubernetes, Nomad, etc.), but Olosh is intentionally minimal and easy to set up. It’s just for simple use cases and learning, not for managing clusters at scale.
This is just a fun experiment to see what’s possible with all that unused hardware. Feel free to suggest and play with it.
https://github.com/Ananto30/olosh
/r/Python
https://redd.it/1m8tdi1
Saw a pattern at large companies: most laptops and desktops are just sitting there, barely using their processing power. Devs aren’t always running heavy stuff, and a lot of machines are just idle for hours.
What My Project Does:
So, I started this project—Olosh. The idea is simple: use those free PCs to run Docker images remotely. It lets you send and run Docker containers on other machines in your network, making use of otherwise idle hardware. Right now, it’s just the basics and I’m testing with my local PCs.
Target Audience:
This is just a fun experiment and a toy project for now—not meant for production. It’s for anyone curious about distributed computing, or who wants to tinker with using spare machines for lightweight jobs.
Comparison:
There are bigger, more robust solutions out there (like Kubernetes, Nomad, etc.), but Olosh is intentionally minimal and easy to set up. It’s just for simple use cases and learning, not for managing clusters at scale.
This is just a fun experiment to see what’s possible with all that unused hardware. Feel free to suggest and play with it.
https://github.com/Ananto30/olosh
/r/Python
https://redd.it/1m8tdi1
GitHub
GitHub - Ananto30/olosh
Contribute to Ananto30/olosh development by creating an account on GitHub.
Beginner question - About adding seed data and efficient testing
Building a tool and trying to test using some seed data (imagine it to be a marketplace type platform - with customers and vendors --> each vendor can have multiple customers and vice-versa). What's the most efficient way to test in these cases / best practices?
As of now using a simple script to seed the data, however while testing using querying I use py shell interactive console and it is hard to really visualize the data and test bug fixes in the models, etc. Any suggested best practices? Sorry if my question isn't super clear.
/r/django
https://redd.it/1m8wf3x
Building a tool and trying to test using some seed data (imagine it to be a marketplace type platform - with customers and vendors --> each vendor can have multiple customers and vice-versa). What's the most efficient way to test in these cases / best practices?
As of now using a simple script to seed the data, however while testing using querying I use py shell interactive console and it is hard to really visualize the data and test bug fixes in the models, etc. Any suggested best practices? Sorry if my question isn't super clear.
/r/django
https://redd.it/1m8wf3x
Reddit
From the django community on Reddit
Explore this post and more from the django community
Nullable but not null - Efe Öge
https://efe.me/posts/nullable-but-not-null/
/r/django
https://redd.it/1m922hk
https://efe.me/posts/nullable-but-not-null/
/r/django
https://redd.it/1m922hk
efe.me
Nullable but not null - Efe Öge
Tech Tales from a Software Craftsman
Does this drive you crazy?
Is it just me, or is it just the most annoying thing in the world how, when using the `logging` module, Flask uses a single log message, spanning over multiple lines for this startup message? It gets worse when you have a log format that aligns everything, but this message screws what up.
2025-07-24 10:53:56 INFO: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:8000
* Running on http://192.168.0.160:8000
2025-07-24 10:53:56 INFO: Press CTRL+C to quit
I did write a quick workaround with a custom formatter, but this feels like a really bad way of doing this log message on Flask's end... is there any benefit?
class MultiLineFormatter(logging.Formatter):
def format(self, record):
message = super().format(record)
if "\n"
/r/flask
https://redd.it/1m86yjz
Is it just me, or is it just the most annoying thing in the world how, when using the `logging` module, Flask uses a single log message, spanning over multiple lines for this startup message? It gets worse when you have a log format that aligns everything, but this message screws what up.
2025-07-24 10:53:56 INFO: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:8000
* Running on http://192.168.0.160:8000
2025-07-24 10:53:56 INFO: Press CTRL+C to quit
I did write a quick workaround with a custom formatter, but this feels like a really bad way of doing this log message on Flask's end... is there any benefit?
class MultiLineFormatter(logging.Formatter):
def format(self, record):
message = super().format(record)
if "\n"
/r/flask
https://redd.it/1m86yjz
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Beginner
hi all,
I am software developer with 3yoe in python.
I wanted to switch in Django backend.
I want be job ready ASAP with django .
Please guide me how can i start
Once i started django from youtube it all includes template and all i got confused why i am writing frontend here.
Then my friend suggest start Drf as you’ll needing that only for backend part.
Now i have started DRF from chatgpt itself
Creating my First app blog with all the functionalities.
Kindly give real world insights
How can i land job with django
What should i learn exactly
What will be expected from me as a django backend developer.
/r/djangolearning
https://redd.it/1m7c729
hi all,
I am software developer with 3yoe in python.
I wanted to switch in Django backend.
I want be job ready ASAP with django .
Please guide me how can i start
Once i started django from youtube it all includes template and all i got confused why i am writing frontend here.
Then my friend suggest start Drf as you’ll needing that only for backend part.
Now i have started DRF from chatgpt itself
Creating my First app blog with all the functionalities.
Kindly give real world insights
How can i land job with django
What should i learn exactly
What will be expected from me as a django backend developer.
/r/djangolearning
https://redd.it/1m7c729
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Authorization header
Im trying to send the username and password using http with Postman to an api endpoint. Entered the data in the auth tab but the username and password show up as None when printed using logging. I then printed the header using logging and it missing any auth information. I next tried curl, and still nothing. Whats going on?
/r/djangolearning
https://redd.it/1m79g5n
Im trying to send the username and password using http with Postman to an api endpoint. Entered the data in the auth tab but the username and password show up as None when printed using logging. I then printed the header using logging and it missing any auth information. I next tried curl, and still nothing. Whats going on?
/r/djangolearning
https://redd.it/1m79g5n
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
How do I present to my team that celery is better option and multiprocessing in Flask backend.
I recently joined this new project were they are planing to use multiprocessing file creation and processing while user gets mesage as "WIP". We haven't started to implement this.
I worked with celery and Django on previous project but time was limited, only 6 months.
I feel this team isn't aware about celery.
Is it even a good idea to use multiprocessing for Flask or RESTful APIs architecture? If not how can I present this to my team?
/r/flask
https://redd.it/1m7uxt3
I recently joined this new project were they are planing to use multiprocessing file creation and processing while user gets mesage as "WIP". We haven't started to implement this.
I worked with celery and Django on previous project but time was limited, only 6 months.
I feel this team isn't aware about celery.
Is it even a good idea to use multiprocessing for Flask or RESTful APIs architecture? If not how can I present this to my team?
/r/flask
https://redd.it/1m7uxt3
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
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/1m9ezt4
# 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/1m9ezt4
YouTube
Data Structures and Algorithms in Python - Full Course for Beginners
A beginner-friendly introduction to common data structures (linked lists, stacks, queues, graphs) and algorithms (search, sorting, recursion, dynamic programming) in Python. This course will help you prepare for coding interviews and assessments.
🔗 Course…
🔗 Course…
Stop trying to catch exceptions when its ok to let your program crash
Just found this garbage in our prod code
except Exception as e:
logger.error(json.dumps({"reason":"something unexpected happened", "exception":str(e)}))
return False
This is in an aws lambda that runs as the authorizer in api gateway. Simply letting the lambda crash would be an automatic rejection, which is the desired behavior.
But now the error is obfuscated and I have to modify and rebuild to include more information so I can actually figure out what is going on. And for what? What benefit does catching this exception give? Nothing. Just logging an error that something unexpected happened. Wow great.
and also now I dont get to glance at lambda failures to see if issues are occurring. Now I have to add more assert statements to make sure that a test success is an actual success. Cringe.
stop doing this. let your program crash
/r/Python
https://redd.it/1m96wmi
Just found this garbage in our prod code
except Exception as e:
logger.error(json.dumps({"reason":"something unexpected happened", "exception":str(e)}))
return False
This is in an aws lambda that runs as the authorizer in api gateway. Simply letting the lambda crash would be an automatic rejection, which is the desired behavior.
But now the error is obfuscated and I have to modify and rebuild to include more information so I can actually figure out what is going on. And for what? What benefit does catching this exception give? Nothing. Just logging an error that something unexpected happened. Wow great.
and also now I dont get to glance at lambda failures to see if issues are occurring. Now I have to add more assert statements to make sure that a test success is an actual success. Cringe.
stop doing this. let your program crash
/r/Python
https://redd.it/1m96wmi
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
is this a bad start
After seeing an ad for a website that claims to create apps using AI, I gave it a try. But the result wasn’t what I wanted, so I downloaded the full code (Python) and ran it locally.
At first, I had no idea what I was doing. I used ChatGPT to help me make changes, but I ran into many issues and errors. Still, over time I started to understand things like file paths, libraries, and how the code was structured.
Eventually, I got used to the workflow: give the code to AI, get suggestions, and apply them locally. This process made me curious, so I decided to start learning Python from scratch. Surprisingly, it’s not as hard as I thought.
What do you think about this approach? Any tips or advice for someone going down this path?
/r/flask
https://redd.it/1m74k3m
After seeing an ad for a website that claims to create apps using AI, I gave it a try. But the result wasn’t what I wanted, so I downloaded the full code (Python) and ran it locally.
At first, I had no idea what I was doing. I used ChatGPT to help me make changes, but I ran into many issues and errors. Still, over time I started to understand things like file paths, libraries, and how the code was structured.
Eventually, I got used to the workflow: give the code to AI, get suggestions, and apply them locally. This process made me curious, so I decided to start learning Python from scratch. Surprisingly, it’s not as hard as I thought.
What do you think about this approach? Any tips or advice for someone going down this path?
/r/flask
https://redd.it/1m74k3m
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Flask Web Development
Guys, I would like to have some suggestions from you regarding topics that you would like me to explore in Flask India Blogs. This is my small contribution to giving back to the community.
/r/flask
https://redd.it/1m9pbk5
Guys, I would like to have some suggestions from you regarding topics that you would like me to explore in Flask India Blogs. This is my small contribution to giving back to the community.
/r/flask
https://redd.it/1m9pbk5
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Questions about Django Security in 2025 (Django 5.1.x+)
Hello. Over the past few months I've gotten more and more paranoid with data/network security and I've been working on locking down my digital life (even made an ethernet kill switch for a few machines). I've been working with django for a few years now and I'd like to bump up my security protocols for my live and public instances, but have a few questions before I do too much work.
1. There is a library out there called django-defender that I recently learned about (link), and the last release was in 2024. This library basically makes it so malicious actors can't brute-force login to the admin dashboard. It's one of those deals where after X attempts it locks the account. The idea sounds intriguing to me but its been over a year since the last release, and I was wondering if anyone has used this with Django 5.1 and if this library is even relevant now in mid-2025? If not, are there any alternatives that you have worked with that get the job done?
2. I recently got 2 Yubikeys (one for backup), and I would really like to learn how to do FIDO2/U2F to add another layer of
/r/django
https://redd.it/1m8xuqn
Hello. Over the past few months I've gotten more and more paranoid with data/network security and I've been working on locking down my digital life (even made an ethernet kill switch for a few machines). I've been working with django for a few years now and I'd like to bump up my security protocols for my live and public instances, but have a few questions before I do too much work.
1. There is a library out there called django-defender that I recently learned about (link), and the last release was in 2024. This library basically makes it so malicious actors can't brute-force login to the admin dashboard. It's one of those deals where after X attempts it locks the account. The idea sounds intriguing to me but its been over a year since the last release, and I was wondering if anyone has used this with Django 5.1 and if this library is even relevant now in mid-2025? If not, are there any alternatives that you have worked with that get the job done?
2. I recently got 2 Yubikeys (one for backup), and I would really like to learn how to do FIDO2/U2F to add another layer of
/r/django
https://redd.it/1m8xuqn
GitHub
GitHub - jazzband/django-defender: A simple super fast django reusable app that blocks people from brute forcing login attempts
A simple super fast django reusable app that blocks people from brute forcing login attempts - jazzband/django-defender
Using Django Float fields vs Decimal/Integer fields
I saw a thread that I couldn’t comment on and thought someone may need this knowledge in the future.
People were arguing in the past that they don’t know of a benefit for using float fields.
I’ve written extremely long calculation functions that I use to perform some inverse kinematics on earthmoving machinery components.
Imagine an ExcavatorBoom model with dimension fields like x_a, y_a, x_b etc.
I have a property field called “matrix” that uses numpy to create a sort of matrix of coordinates as a numpy array with the input coordinates. The problem was I had to convert each and every field to a float.
I initially used decimal fields for the dimensions, masses and everything else really because in the 3 years that I have been coding, it never occurred to me to look up if float fields even existed in Django. Extreme tunnel vision…
So within each calculation, I needed to convert every single input into a float. (I calculated over 135 conversions per calculation).
This means testing my calcs took 4-5 days of debugging.
So I ended up converting all decimal and integer fields to float fields and deleted all float conversions in my calculation methods. This made my code infinitely cleaner and easier
/r/django
https://redd.it/1m9vv6x
I saw a thread that I couldn’t comment on and thought someone may need this knowledge in the future.
People were arguing in the past that they don’t know of a benefit for using float fields.
I’ve written extremely long calculation functions that I use to perform some inverse kinematics on earthmoving machinery components.
Imagine an ExcavatorBoom model with dimension fields like x_a, y_a, x_b etc.
I have a property field called “matrix” that uses numpy to create a sort of matrix of coordinates as a numpy array with the input coordinates. The problem was I had to convert each and every field to a float.
I initially used decimal fields for the dimensions, masses and everything else really because in the 3 years that I have been coding, it never occurred to me to look up if float fields even existed in Django. Extreme tunnel vision…
So within each calculation, I needed to convert every single input into a float. (I calculated over 135 conversions per calculation).
This means testing my calcs took 4-5 days of debugging.
So I ended up converting all decimal and integer fields to float fields and deleted all float conversions in my calculation methods. This made my code infinitely cleaner and easier
/r/django
https://redd.it/1m9vv6x
Reddit
From the django community on Reddit
Explore this post and more from the django community
First repository (Appointment booking system)
https://github.com/AtharvaManale/Appointment-Booking
/r/flask
https://redd.it/1m9v9c7
https://github.com/AtharvaManale/Appointment-Booking
/r/flask
https://redd.it/1m9v9c7
GitHub
GitHub - AtharvaManale/Appointment-Booking-System: Just an Appointment booking system for Smartvolt company webpage
Just an Appointment booking system for Smartvolt company webpage - GitHub - AtharvaManale/Appointment-Booking-System: Just an Appointment booking system for Smartvolt company webpage