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/1l1xqmw
# 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/1l1xqmw
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
HIRING/RETAINER Django Dev or Small Firm - Emergency Backup for Tiny SaaS
We’re a two-person team running a small Django-based SaaS (Django, Celery, Postgis, Redis, Fly.io, etc.). It’s a live app with paying customers, but we’re small: just the two of us. Oh, and we're married.
We’re responding to a government RFP. Since we’re a tiny shop, we’d like to put someone on retainer as an emergency backup to show continuity of service. Ideally a Django dev or small firm that we could list in our proposals. Preferably one with a LLC/Inc./DBA so we don't have to list just your name.
We don’t expect you to do anything day-to-day, just be on standby with some awareness of our stack and access to the code/docs in case we get hit by a bus.
We’d be willing to pay a small annual fee for this. If the worst ever happens, you’d be the first call.
If that sounds like something you’d offer, drop a comment or DM. Thanks!
/r/django
https://redd.it/1l1zxw2
We’re a two-person team running a small Django-based SaaS (Django, Celery, Postgis, Redis, Fly.io, etc.). It’s a live app with paying customers, but we’re small: just the two of us. Oh, and we're married.
We’re responding to a government RFP. Since we’re a tiny shop, we’d like to put someone on retainer as an emergency backup to show continuity of service. Ideally a Django dev or small firm that we could list in our proposals. Preferably one with a LLC/Inc./DBA so we don't have to list just your name.
We don’t expect you to do anything day-to-day, just be on standby with some awareness of our stack and access to the code/docs in case we get hit by a bus.
We’d be willing to pay a small annual fee for this. If the worst ever happens, you’d be the first call.
If that sounds like something you’d offer, drop a comment or DM. Thanks!
/r/django
https://redd.it/1l1zxw2
Reddit
From the django community on Reddit
Explore this post and more from the django community
FastAPI + Supabase Auth Template
What My Project Does
This is a FastAPI + Supabase authentication template that includes everything you need to get up and running with auth. It supports email/password login, Google OAuth with PKCE, password reset, and JWT validation. Just clone it, add your Supabase and Google credentials, and you're ready to go.
Target Audience
This is meant for developers who need working auth but don't want to spend days wrestling with OAuth flows, redirect URIs, or boilerplate setup. It’s ideal for anyone deploying on Google Cloud or using Supabase, especially for small-to-medium projects or prototypes.
Comparison
Most FastAPI auth tutorials stop at hashing passwords. This template covers what actually matters:
• Fully working Google OAuth with PKCE
• Clean secret management using Google Secret Manager
• Built-in UI to test and debug login flows
• All redirect URI handling is pre-configured
It’s optimized for Google Cloud hosting (note: GCP has usage fees), but Supabase allows two free projects, which makes it easy to get started without paying anything.
Supabase API Scaffolding Template
/r/Python
https://redd.it/1l2bm0g
What My Project Does
This is a FastAPI + Supabase authentication template that includes everything you need to get up and running with auth. It supports email/password login, Google OAuth with PKCE, password reset, and JWT validation. Just clone it, add your Supabase and Google credentials, and you're ready to go.
Target Audience
This is meant for developers who need working auth but don't want to spend days wrestling with OAuth flows, redirect URIs, or boilerplate setup. It’s ideal for anyone deploying on Google Cloud or using Supabase, especially for small-to-medium projects or prototypes.
Comparison
Most FastAPI auth tutorials stop at hashing passwords. This template covers what actually matters:
• Fully working Google OAuth with PKCE
• Clean secret management using Google Secret Manager
• Built-in UI to test and debug login flows
• All redirect URI handling is pre-configured
It’s optimized for Google Cloud hosting (note: GCP has usage fees), but Supabase allows two free projects, which makes it easy to get started without paying anything.
Supabase API Scaffolding Template
/r/Python
https://redd.it/1l2bm0g
GitHub
GitHub - hpohlmann/supabase-api-scaffolding-template: Production-ready FastAPI authentication API template with Supabase integration.…
Production-ready FastAPI authentication API template with Supabase integration. Features email/password auth, Google OAuth (PKCE), JWT validation, and Google Secret Manager support. Perfect scaffol...
Mopad: Gamepad support for Python is finally here!
What my project does:
Browsers have a gamepad API these days, but these weren't exposed to Python notebooks yet. Thanks to mopad, you can now use a widget (made with anywidget!) to control Python with a game controller. It's more useful that you might initially think because this also means that you can build labelling interfaces in your notebook and add labels to data with a device that makes everything feel like a fun video game.
Target audience:
It's mainly meant for ML/AI people that like to work with Python notebooks. The main target for the widget is marimo but because it's made with anywidget it should also work in Jupyter/VSCode/colab.
Comparison:
I'm not aware of other projects that add gamepad support, but one downside that's fair to mention is that this approach only works in browser based notebook because we need the web API. Not all gamepads are supported by all vendors (MacOS only allows for bluetooth gamepads AFAIK), but I've tried a bunch of pads and they all work great!
If you're keen to see a demo, check the YT video here: https://www.youtube.com/watch?v=4fXLB5\_F2rg&ab\_channel=marimo
If you have a gamepad in your hand, you can also try it out on
/r/Python
https://redd.it/1l269h7
What my project does:
Browsers have a gamepad API these days, but these weren't exposed to Python notebooks yet. Thanks to mopad, you can now use a widget (made with anywidget!) to control Python with a game controller. It's more useful that you might initially think because this also means that you can build labelling interfaces in your notebook and add labels to data with a device that makes everything feel like a fun video game.
Target audience:
It's mainly meant for ML/AI people that like to work with Python notebooks. The main target for the widget is marimo but because it's made with anywidget it should also work in Jupyter/VSCode/colab.
Comparison:
I'm not aware of other projects that add gamepad support, but one downside that's fair to mention is that this approach only works in browser based notebook because we need the web API. Not all gamepads are supported by all vendors (MacOS only allows for bluetooth gamepads AFAIK), but I've tried a bunch of pads and they all work great!
If you're keen to see a demo, check the YT video here: https://www.youtube.com/watch?v=4fXLB5\_F2rg&ab\_channel=marimo
If you have a gamepad in your hand, you can also try it out on
/r/Python
https://redd.it/1l269h7
No more exit()? Yay for exit!
I usually use python in the terminal as a calculator or to test out quick ideas. The command to close the Linux terminal is "exit", so I always got hit with the interpreter error/warning saying I needed to use "exit()". I guess python 3.13.3 finally likes my exit command, and my muscle memory has been redeemed!
/r/Python
https://redd.it/1l1zeib
I usually use python in the terminal as a calculator or to test out quick ideas. The command to close the Linux terminal is "exit", so I always got hit with the interpreter error/warning saying I needed to use "exit()". I guess python 3.13.3 finally likes my exit command, and my muscle memory has been redeemed!
/r/Python
https://redd.it/1l1zeib
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Creating a live scoreboard in using Python.
Hi,
For work I usually have to watch some football films and write articles about what I’m watching. On a lot of the teams films I’ve started seeing layouts like this with the game information and a running clock prior to the film of the play starting.
I was wondering if there is a way to link an excel sheet of the game data or use python in a way so that it’s reflected on a PowerPoint slide similar to a scoreboard
For example if I have a sheet with a column for each “down” and “distance” - can I link that sheet so each down and distance is then reflected onto a slide?
/r/Python
https://redd.it/1l2hn9e
Hi,
For work I usually have to watch some football films and write articles about what I’m watching. On a lot of the teams films I’ve started seeing layouts like this with the game information and a running clock prior to the film of the play starting.
I was wondering if there is a way to link an excel sheet of the game data or use python in a way so that it’s reflected on a PowerPoint slide similar to a scoreboard
For example if I have a sheet with a column for each “down” and “distance” - can I link that sheet so each down and distance is then reflected onto a slide?
/r/Python
https://redd.it/1l2hn9e
What is the best way to send/share a Jupyter notebook from itself?
I'm conducting a class on Python for high school students for my local college.
They will be working through a Jupyter notebook in our computer lab with Python being set up by Anaconda.
After the class, we require them to submit their Jupyter notebooks to us, and ideally allow them to easily download it for themselves.
What is the best way to achieve this without requiring them to have a USB drive or having to login to their email to send themselves etc.?
My predecessor set up a throwaway email account and use the
However, it is finicky and the email account keep getting flagged for abuse and fails to send half the time.
EDIT: The current plan is to use Github's gists API to upload the notebook as a gist. The returned gist URL is then sent to a QR code API to return a QR code that students can scan. Everything is done with
/r/Python
https://redd.it/1l2aosj
I'm conducting a class on Python for high school students for my local college.
They will be working through a Jupyter notebook in our computer lab with Python being set up by Anaconda.
After the class, we require them to submit their Jupyter notebooks to us, and ideally allow them to easily download it for themselves.
What is the best way to achieve this without requiring them to have a USB drive or having to login to their email to send themselves etc.?
My predecessor set up a throwaway email account and use the
smtplib and email packages in the notebook itself to email us and the students the notebook. The students just have to enter their own email address in a variable.However, it is finicky and the email account keep getting flagged for abuse and fails to send half the time.
EDIT: The current plan is to use Github's gists API to upload the notebook as a gist. The returned gist URL is then sent to a QR code API to return a QR code that students can scan. Everything is done with
requests in the notebook itself and students don't have to create accounts for anything./r/Python
https://redd.it/1l2aosj
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
This thing just saved me hours on a stupid bug
I was messing around with a django project and ran into this annoying issue where my form
wouldn’t validate but there was no real error showing. i had been going in circles for like two
hours. i asked the assistant about it and dropped in the code and it actually pointed out that i
was missing a clean method on the form to handle a custom field. something i totally overlooked
it even gave me the exact method and explained how to raise the validation error the right way.
copied it in, adjusted a bit and boom fixed
not gonna lie i didn’t expect it to understand what i meant without me explaining everything but
somehow it got the point
whoever built this thing, respect. this kinda help is next level.
/r/django
https://redd.it/1l2ltil
I was messing around with a django project and ran into this annoying issue where my form
wouldn’t validate but there was no real error showing. i had been going in circles for like two
hours. i asked the assistant about it and dropped in the code and it actually pointed out that i
was missing a clean method on the form to handle a custom field. something i totally overlooked
it even gave me the exact method and explained how to raise the validation error the right way.
copied it in, adjusted a bit and boom fixed
not gonna lie i didn’t expect it to understand what i meant without me explaining everything but
somehow it got the point
whoever built this thing, respect. this kinda help is next level.
/r/django
https://redd.it/1l2ltil
Reddit
From the django community on Reddit
Explore this post and more from the django community
Wednesday Daily Thread: Beginner questions
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/1l2rfyx
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/1l2rfyx
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
Best library for Google Maps/address functionality?
I'm working on a project that will have addresses tied to various models. I would like to have a view that will display all of them as markers on a map, etc.
I have tried django-google-maps, which seems to do the trick with the backend admin, but it leaves a bit to be desired on the frontend, for example I don't want to show the map preview on the frontend, just a single autocomplete address field.
It would also be nice if later I could make views with dropdowns by state/country, which I don't think can be done with django-google-maps.
How are others implementing this?
I've also tried making my own core "Address" model that would be modeled after what google maps uses, with the idea that I can tie the logic of that model to others, but I'm struggling to make things work logically to where I can add the field easily to other models, and into their forms.py, etc.
/r/django
https://redd.it/1l2lvqh
I'm working on a project that will have addresses tied to various models. I would like to have a view that will display all of them as markers on a map, etc.
I have tried django-google-maps, which seems to do the trick with the backend admin, but it leaves a bit to be desired on the frontend, for example I don't want to show the map preview on the frontend, just a single autocomplete address field.
It would also be nice if later I could make views with dropdowns by state/country, which I don't think can be done with django-google-maps.
How are others implementing this?
I've also tried making my own core "Address" model that would be modeled after what google maps uses, with the idea that I can tie the logic of that model to others, but I'm struggling to make things work logically to where I can add the field easily to other models, and into their forms.py, etc.
/r/django
https://redd.it/1l2lvqh
Reddit
From the django community on Reddit
Explore this post and more from the django community
Frontend for backend dev
I've been writing this backend, got to a stage where I need to get a frontend to keep things going, I know just html and css, then I decided to turn to AI to write the front end which is turning out just fine, some include JS which I have absolutely no idea about JS, thw only thing ai write is html and css so far, ive been the one writing the api views myself, it doesn't look bad on a resume as a backend developer when someone is looking at it, or does it?
Is that vibe coding ?
/r/django
https://redd.it/1l2amxg
I've been writing this backend, got to a stage where I need to get a frontend to keep things going, I know just html and css, then I decided to turn to AI to write the front end which is turning out just fine, some include JS which I have absolutely no idea about JS, thw only thing ai write is html and css so far, ive been the one writing the api views myself, it doesn't look bad on a resume as a backend developer when someone is looking at it, or does it?
Is that vibe coding ?
/r/django
https://redd.it/1l2amxg
Reddit
From the django community on Reddit
Explore this post and more from the django community
pyleak - detect leaked asyncio tasks, threads, and event loop blocking in Python
What
Target Audience
This is a production-ready testing tool for Python developers building concurrent async applications. It's particularly valuable for teams working on high-throughput async services (web APIs, websocket servers, data processing pipelines) where small leaks compound into major performance issues under load.
The Problem It Solves
In concurrent async code, it's surprisingly easy to create tasks without awaiting them, or accidentally block the event loop with synchronous calls. These issues often don't surface until you're under load, making them hard to debug in production.
Inspired by Go's goleak package, adapted for Python's async patterns.
PyPI:
GitHub: https://github.com/deepankarm/pyleak
/r/Python
https://redd.it/1l2y5rz
What
pyleak Doespyleak is a Python library that detects resource leaks in asyncio applications during testing. It catches three main issues: leaked asyncio tasks, event loop blocking from synchronous calls (like time.sleep() or requests.get()), and thread leaks. The library integrates into your test suite to catch these problems before they hit production.Target Audience
This is a production-ready testing tool for Python developers building concurrent async applications. It's particularly valuable for teams working on high-throughput async services (web APIs, websocket servers, data processing pipelines) where small leaks compound into major performance issues under load.
The Problem It Solves
In concurrent async code, it's surprisingly easy to create tasks without awaiting them, or accidentally block the event loop with synchronous calls. These issues often don't surface until you're under load, making them hard to debug in production.
Inspired by Go's goleak package, adapted for Python's async patterns.
PyPI:
pip install pyleakGitHub: https://github.com/deepankarm/pyleak
/r/Python
https://redd.it/1l2y5rz
GitHub
GitHub - uber-go/goleak: Goroutine leak detector
Goroutine leak detector. Contribute to uber-go/goleak development by creating an account on GitHub.
Whitenoise serving original js files alongside hashed files
Hi, I've been struggling with serving static files in deployment in my django app. It's a simple monolithic architecture using vanilla js for front end. I use nginx to serve the static files and whitenoise to generate the hashed versions into a single directory. The problem is when I check the static folder I see also original files alongside hashed versions and this results in having a multiple event listeners being triggered on the same event and lots of bugs. I found this configuration to avoid copying original files: WHITENOISE_KEEP_ONLY_HASHED_FILES = True
when I set this I see that for some reason only js files that are imported in the html file as script are imported and imports that are required from inside js files are failing. I'm guessing it's looking for original file in the static folder and with this config they don't exist.
Everything is served in one VPS server.
Anyways it's a huge mess, I just hope someone has faced this issue and has a fix.
I'm thinking about using webpack or vite but are not keen on adding 3rd part dependencies if there's a simple fix.
/r/django
https://redd.it/1l300jy
Hi, I've been struggling with serving static files in deployment in my django app. It's a simple monolithic architecture using vanilla js for front end. I use nginx to serve the static files and whitenoise to generate the hashed versions into a single directory. The problem is when I check the static folder I see also original files alongside hashed versions and this results in having a multiple event listeners being triggered on the same event and lots of bugs. I found this configuration to avoid copying original files: WHITENOISE_KEEP_ONLY_HASHED_FILES = True
when I set this I see that for some reason only js files that are imported in the html file as script are imported and imports that are required from inside js files are failing. I'm guessing it's looking for original file in the static folder and with this config they don't exist.
Everything is served in one VPS server.
Anyways it's a huge mess, I just hope someone has faced this issue and has a fix.
I'm thinking about using webpack or vite but are not keen on adding 3rd part dependencies if there's a simple fix.
/r/django
https://redd.it/1l300jy
Reddit
From the django community on Reddit
Explore this post and more from the django community
CarbonKivy - IBM's Carbon Design Components for Kivy
# What My Project Does
CarbonKivy is a Python library that integrates IBM's Carbon Design System with the Kivy framework. It provides a modern, accessible, and user-friendly UI toolkit inspired by Carbon’s design principles, enabling developers to create consistent and visually appealing applications in Kivy. CarbonKivy is a next-generation toolkit for developers looking to create professional-grade applications using the power of Kivy coupled with the design excellence of Carbon Design principles.
Github: CarbonKivy
Demo application: Carbonify
Documentation: CarbonKivy docs
# Target Audience
Its meant for Android, iOS, Windows, Linux and macOS developers.
This can be used for both production and personal projects.
# Comparison
Many of us are aware of KivyMD - Google's Material Design Components for Kivy.
CarbonKivy follows a whole different design system by IBM i.e. the Carbon Design System. This project is in Active Development and will be adding more available components as in the latest Carbon Design System.
Our project follows a whole different strategy and design priciples for more optimized and user friendly experience.
/r/Python
https://redd.it/1l2wwmp
# What My Project Does
CarbonKivy is a Python library that integrates IBM's Carbon Design System with the Kivy framework. It provides a modern, accessible, and user-friendly UI toolkit inspired by Carbon’s design principles, enabling developers to create consistent and visually appealing applications in Kivy. CarbonKivy is a next-generation toolkit for developers looking to create professional-grade applications using the power of Kivy coupled with the design excellence of Carbon Design principles.
Github: CarbonKivy
Demo application: Carbonify
Documentation: CarbonKivy docs
# Target Audience
Its meant for Android, iOS, Windows, Linux and macOS developers.
This can be used for both production and personal projects.
# Comparison
Many of us are aware of KivyMD - Google's Material Design Components for Kivy.
CarbonKivy follows a whole different design system by IBM i.e. the Carbon Design System. This project is in Active Development and will be adding more available components as in the latest Carbon Design System.
Our project follows a whole different strategy and design priciples for more optimized and user friendly experience.
/r/Python
https://redd.it/1l2wwmp
Carbondesignsystem
Carbon Design System
Carbon is IBM’s open source design system for products and digital experiences. With the IBM Design Language as its foundation, the system consists of working code, design tools and resources, human interface guidelines, and a vibrant community of contributors.
Mongo Analyser: A TUI Application for MongoDB with Integrated AI Assistant
I’ve made an open-source TUI application in Python called Mongo Analyser that runs right in your terminal and helps you get a clear picture of what’s inside your MongoDB databases.
What My Project Does
Mongo Analyser is a terminal app that connects to MongoDB instances (Atlas or local), scans collections to infer field types and nested document structures, shows collection stats (document counts, indexes, and storage size), and lets you view sample documents. Instead of running
Target Audience
I believe if you’re a Python developer, data engineer, data analyst, or anyone dealing with messy, schema-less data stored in MongoDB, this tool can help you understand what your data actually looks like and how its structure could be improved.
Comparison
Unlike Flask/Django web apps or GUI tools like Compass, Mongo Analyser lives in your terminal, so no web server or browser is needed. Compared to Streamlit or Anvil, you avoid extra dependencies but still get AI-powered insights without a separate backend.
Project's GitHub repository: https://github.com/habedi/mongo-analyser
The project is in the beta stage, and suggestions
/r/Python
https://redd.it/1l36v2r
I’ve made an open-source TUI application in Python called Mongo Analyser that runs right in your terminal and helps you get a clear picture of what’s inside your MongoDB databases.
What My Project Does
Mongo Analyser is a terminal app that connects to MongoDB instances (Atlas or local), scans collections to infer field types and nested document structures, shows collection stats (document counts, indexes, and storage size), and lets you view sample documents. Instead of running
db.collection.find() commands, you can use a simple text UI and even chat with an AI model (currently provided by Ollama, OpenAI, or Google) for schema explanations, query suggestions, etc.Target Audience
I believe if you’re a Python developer, data engineer, data analyst, or anyone dealing with messy, schema-less data stored in MongoDB, this tool can help you understand what your data actually looks like and how its structure could be improved.
Comparison
Unlike Flask/Django web apps or GUI tools like Compass, Mongo Analyser lives in your terminal, so no web server or browser is needed. Compared to Streamlit or Anvil, you avoid extra dependencies but still get AI-powered insights without a separate backend.
Project's GitHub repository: https://github.com/habedi/mongo-analyser
The project is in the beta stage, and suggestions
/r/Python
https://redd.it/1l36v2r
GitHub
GitHub - habedi/mongo-analyser: Analyze and understand data stored in MongoDB from the command line
Analyze and understand data stored in MongoDB from the command line - habedi/mongo-analyser
Django security releases issued: 5.2.2, 5.1.10, and 4.2.22
https://www.djangoproject.com/weblog/2025/jun/04/security-releases/
/r/django
https://redd.it/1l36p7f
https://www.djangoproject.com/weblog/2025/jun/04/security-releases/
/r/django
https://redd.it/1l36p7f
Django Project
Django security releases issued: 5.2.2, 5.1.10, and 4.2.22
Posted by Natalia Bidart on June 4, 2025
What should I choose in FE (React + DRF)
I'm planning on working on a new project. However, I haven't decided how I'm going to structure my Front-end. I thought about going with Tanstack Router. Or should I choose something like React Router v7 as framework or Tanstack start. My colleague and I are pretty comfortable with Django and DRF. But we haven't made a final decision about the FE. Any suggestions?
/r/django
https://redd.it/1l33e6u
I'm planning on working on a new project. However, I haven't decided how I'm going to structure my Front-end. I thought about going with Tanstack Router. Or should I choose something like React Router v7 as framework or Tanstack start. My colleague and I are pretty comfortable with Django and DRF. But we haven't made a final decision about the FE. Any suggestions?
/r/django
https://redd.it/1l33e6u
Reddit
From the django community on Reddit
Explore this post and more from the django community
WEP - Web Embedded Python (.wep)
WEP — Web Embedded Python: Write Python directly in HTML (like PHP, but for Python lovers)
Hey r/Python! I recently built and released the MVP of a personal project called WEP — Web Embedded Python. It's a lightweight server-side template engine and micro-framework that lets you embed actual Python code inside HTML using
# What My Project Does
WEP allows you to write HTML files with embedded Python blocks. You can use the
# Target Audience
This project is aimed at Python learners, hobbyists, educators, or anyone who wants to build server-rendered pages without spinning up full backend/frontend stacks. If you've ever wanted a “just Python and HTML” workflow for demos
/r/Python
https://redd.it/1l35niu
WEP — Web Embedded Python: Write Python directly in HTML (like PHP, but for Python lovers)
Hey r/Python! I recently built and released the MVP of a personal project called WEP — Web Embedded Python. It's a lightweight server-side template engine and micro-framework that lets you embed actual Python code inside HTML using
.wep files and <wep>...</wep> tags. Think of it like PHP, but using Python syntax. It’s built on Flask and is meant to be minimal, easy to set up, and ideal for quick prototypes, learning, or even building simple AI-powered apps.# What My Project Does
WEP allows you to write HTML files with embedded Python blocks. You can use the
echo() function to output dynamic content, run loops, import libraries — all inside your .wep file. When you load the page, Python gets executed server-side and the final HTML is sent to the client. It’s fast to start with, and great for hacking together quick ideas without needing JavaScript, REST APIs, or frontend frameworks.# Target Audience
This project is aimed at Python learners, hobbyists, educators, or anyone who wants to build server-rendered pages without spinning up full backend/frontend stacks. If you've ever wanted a “just Python and HTML” workflow for demos
/r/Python
https://redd.it/1l35niu
Reddit
From the Python community on Reddit: WEP - Web Embedded Python (.wep)
Explore this post and more from the Python community
RTime Blindness: Why Video-Language Models Can't See What Humans Can?
Found this paper pretty interesting. None of the models got anything right.
arxiv link: https://arxiv.org/abs/2505.24867
Abstract:
Recent advances in vision-language models (VLMs) have made impressive strides in understanding spatio-temporal relationships in videos. However, when spatial information is obscured, these models struggle to capture purely temporal patterns. We introduce SpookyBench, a benchmark where information is encoded solely in temporal sequences of noise-like frames, mirroring natural phenomena from biological signaling to covert communication. Interestingly, while humans can recognize shapes, text, and patterns in these sequences with over 98% accuracy, state-of-the-art VLMs achieve 0% accuracy. This performance gap highlights a critical limitation: an over-reliance on frame-level spatial features and an inability to extract meaning from temporal cues. Furthermore, when trained in data sets with low spatial signal-to-noise ratios (SNR), temporal understanding of models degrades more rapidly than human perception, especially in tasks requiring fine-grained temporal reasoning. Overcoming this limitation will require novel architectures or training paradigms that decouple spatial dependencies from temporal processing. Our systematic analysis shows that this issue persists across model scales and architectures. We release SpookyBench to catalyze research in temporal pattern recognition and bridge the gap between human and machine video understanding. Dataset and code has been made available on our project website:
/r/MachineLearning
https://redd.it/1l33op4
Found this paper pretty interesting. None of the models got anything right.
arxiv link: https://arxiv.org/abs/2505.24867
Abstract:
Recent advances in vision-language models (VLMs) have made impressive strides in understanding spatio-temporal relationships in videos. However, when spatial information is obscured, these models struggle to capture purely temporal patterns. We introduce SpookyBench, a benchmark where information is encoded solely in temporal sequences of noise-like frames, mirroring natural phenomena from biological signaling to covert communication. Interestingly, while humans can recognize shapes, text, and patterns in these sequences with over 98% accuracy, state-of-the-art VLMs achieve 0% accuracy. This performance gap highlights a critical limitation: an over-reliance on frame-level spatial features and an inability to extract meaning from temporal cues. Furthermore, when trained in data sets with low spatial signal-to-noise ratios (SNR), temporal understanding of models degrades more rapidly than human perception, especially in tasks requiring fine-grained temporal reasoning. Overcoming this limitation will require novel architectures or training paradigms that decouple spatial dependencies from temporal processing. Our systematic analysis shows that this issue persists across model scales and architectures. We release SpookyBench to catalyze research in temporal pattern recognition and bridge the gap between human and machine video understanding. Dataset and code has been made available on our project website:
/r/MachineLearning
https://redd.it/1l33op4
arXiv.org
Time Blindness: Why Video-Language Models Can't See What Humans Can?
Recent advances in vision-language models (VLMs) have made impressive strides in understanding spatio-temporal relationships in videos. However, when spatial information is obscured, these models...