Busy writing a Django React ssr app
I'm currently writing a Django app for where I can use react components inside my Django templates using Django tags. I created it as I hated the idea of using 2 servers, nextjs AND Django, where Django is light-years ahead and then dealing with silly nextjs methodologies.
It truly streamlined my development giving me smooth react SSR meaning better vital scores plus I get to manage components in a Django way, it forced me to write cleaner reusable react components. That and people often get lost in on nextjs as they would naturally try to force business logic in places where they shouldn't belong. And you are finally forced to write extra API endpoints for silly get requests on trivial things from Django to nextjs.I did a trial run in wagtail as well which gives you crazy control CMS style.
If anyone is interested I'd be happy to open-source as for now it is only part of my project i am working on, if so we can collaborate on making it even better but this is what it looks like currently when you use it in Django templates.
Arguments include.
1. Component Name
2. Ssr - should the component render server side?
3. Ssp - server
/r/django
https://redd.it/1ja4cf4
I'm currently writing a Django app for where I can use react components inside my Django templates using Django tags. I created it as I hated the idea of using 2 servers, nextjs AND Django, where Django is light-years ahead and then dealing with silly nextjs methodologies.
It truly streamlined my development giving me smooth react SSR meaning better vital scores plus I get to manage components in a Django way, it forced me to write cleaner reusable react components. That and people often get lost in on nextjs as they would naturally try to force business logic in places where they shouldn't belong. And you are finally forced to write extra API endpoints for silly get requests on trivial things from Django to nextjs.I did a trial run in wagtail as well which gives you crazy control CMS style.
If anyone is interested I'd be happy to open-source as for now it is only part of my project i am working on, if so we can collaborate on making it even better but this is what it looks like currently when you use it in Django templates.
Arguments include.
1. Component Name
2. Ssr - should the component render server side?
3. Ssp - server
/r/django
https://redd.it/1ja4cf4
Reddit
From the django community on Reddit
Explore this post and more from the django community
Spotify Api Recommender System
Hi guys,
Lately spotify's recommendations have been going from bad to worse imo. I have been thinking to build a better recommender system on top of the spotify api. I hope to find some help in the sub regarding some techniques and some starter idea to go by.
I'm very new to building recommender systems tbh. Thanks in advance for your help.
/r/Python
https://redd.it/1ja6glq
Hi guys,
Lately spotify's recommendations have been going from bad to worse imo. I have been thinking to build a better recommender system on top of the spotify api. I hope to find some help in the sub regarding some techniques and some starter idea to go by.
I'm very new to building recommender systems tbh. Thanks in advance for your help.
/r/Python
https://redd.it/1ja6glq
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Beginner Question regarding Flask-Login's loginrequired decorator
So I want to create a route where the user has to be logged in to view the contents of a post.
Normally you would write the @ login\required decorator before the function definition.
But I want the authors to be able to make their posts viewable to anyone even if they are not logged in.
Currently i use current_user.is_authenticated and if the user is anonymous i use the redirect() function to manually redirect the user to the login. My question was if there is a better way to do it with the decorator like you normally do
/r/flask
https://redd.it/1j9r1qt
So I want to create a route where the user has to be logged in to view the contents of a post.
Normally you would write the @ login\required decorator before the function definition.
But I want the authors to be able to make their posts viewable to anyone even if they are not logged in.
Currently i use current_user.is_authenticated and if the user is anonymous i use the redirect() function to manually redirect the user to the login. My question was if there is a better way to do it with the decorator like you normally do
/r/flask
https://redd.it/1j9r1qt
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
A python program that Searches, Plays Music from YouTube Directly
music-cli is a lightweight, terminal-based music player designed for users who prefer a minimal, command-line approach to listening to music. It allows you to play and download YouTube videos directly from the terminal, with support for mpv, VLC, or even terminal-based playback.
Now, I know this isn't some huge, super-polished project like you guys usually build here, but it's actually quite good.
What music-cli does
• Play music from YouTube or your local library directly from the terminal
• Search for songs, enter a query, get the top 5 YouTube results, and play them instantly
• Choose your player—play directly in the terminal or open in VLC/mpv
• Download tracks as MP3 files effortlessly
• Library management for your downloaded songs
• Playback history to keep track of what you've listened to
Target Audience
This project is perfect for Linux users, terminal enthusiasts, and those who prefer lightweight, no-nonsense music solutions without relying on resource-heavy graphical apps.
How it differs from alternatives
Unlike traditional music streaming services, music-cli doesn't require a GUI or a dedicated online music player. It’s a fast, minimal, and customizable alternative, offering direct control over playback and downloads right from the terminal.
GitHub Repo: https://github.com/lamsal27/music-cli
Any feedback, suggestions, or contributions are welcome.
/r/Python
https://redd.it/1ja8m8t
music-cli is a lightweight, terminal-based music player designed for users who prefer a minimal, command-line approach to listening to music. It allows you to play and download YouTube videos directly from the terminal, with support for mpv, VLC, or even terminal-based playback.
Now, I know this isn't some huge, super-polished project like you guys usually build here, but it's actually quite good.
What music-cli does
• Play music from YouTube or your local library directly from the terminal
• Search for songs, enter a query, get the top 5 YouTube results, and play them instantly
• Choose your player—play directly in the terminal or open in VLC/mpv
• Download tracks as MP3 files effortlessly
• Library management for your downloaded songs
• Playback history to keep track of what you've listened to
Target Audience
This project is perfect for Linux users, terminal enthusiasts, and those who prefer lightweight, no-nonsense music solutions without relying on resource-heavy graphical apps.
How it differs from alternatives
Unlike traditional music streaming services, music-cli doesn't require a GUI or a dedicated online music player. It’s a fast, minimal, and customizable alternative, offering direct control over playback and downloads right from the terminal.
GitHub Repo: https://github.com/lamsal27/music-cli
Any feedback, suggestions, or contributions are welcome.
/r/Python
https://redd.it/1ja8m8t
GitHub
GitHub - lamsal27/music-cli: Terminal based music player which supports playing and downloading youtube videos/music
Terminal based music player which supports playing and downloading youtube videos/music - lamsal27/music-cli
Will you use a RAG library?
Hi there peeps,
I built a sophisticated RAG system based on local first principles - using pgvector as a backend.
I already extracted out of this system the text-extraction logic, which I published as Kreuzberg (see: https://github.com/Goldziher/kreuzberg). My reasoning was that this is not directly coupled to my business case (https://grantflow.ai) and it could be an open source library. But the core of the system I developed is also, with some small adjustments, generic.
I am considering publishing it as a library, but I am not sure people will actually use this. That's why I'm posting - do you think there is a place for such a library? Would you consider using it? What would be important for you?
Please lemme know. I don't want to do this work if it's just gonna be me using it in the end.
/r/Python
https://redd.it/1ja5mlc
Hi there peeps,
I built a sophisticated RAG system based on local first principles - using pgvector as a backend.
I already extracted out of this system the text-extraction logic, which I published as Kreuzberg (see: https://github.com/Goldziher/kreuzberg). My reasoning was that this is not directly coupled to my business case (https://grantflow.ai) and it could be an open source library. But the core of the system I developed is also, with some small adjustments, generic.
I am considering publishing it as a library, but I am not sure people will actually use this. That's why I'm posting - do you think there is a place for such a library? Would you consider using it? What would be important for you?
Please lemme know. I don't want to do this work if it's just gonna be me using it in the end.
/r/Python
https://redd.it/1ja5mlc
GitHub
GitHub - Goldziher/kreuzberg: A polyglot document intelligence framework with a Rust core. Extract text, metadata, and structured…
A polyglot document intelligence framework with a Rust core. Extract text, metadata, and structured information from PDFs, Office documents, images, and 50+ formats. Available for Rust, Python, Rub...
Selenium time.sleep vs implicitlywait
Hello, im looking for understanding of time.sleep vs implicitly\wait.
I was attempting to submit a google form and when using implicitly_wait I was getting an error saying element not interactable.
I changed it to time.sleep and now it works. What gives?
/r/Python
https://redd.it/1jab6lc
Hello, im looking for understanding of time.sleep vs implicitly\wait.
I was attempting to submit a google form and when using implicitly_wait I was getting an error saying element not interactable.
I changed it to time.sleep and now it works. What gives?
/r/Python
https://redd.it/1jab6lc
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
InProgress: A Library based on the Curses Library that lives up to the name. Any thoughts?
It is still in progress. It has a LOT of potential to be honest. Here is how it is look like in perspective of you using my library:
from curses import wrapper
from src.divine import *
def main(scr):
class MainMenu(Heaven):
def __init__(self):
super().__init__()
self.maxy = 13
self.maxx = 30
self.summon()
option = ''
while True:
/r/Python
https://redd.it/1jacy4v
It is still in progress. It has a LOT of potential to be honest. Here is how it is look like in perspective of you using my library:
from curses import wrapper
from src.divine import *
def main(scr):
class MainMenu(Heaven):
def __init__(self):
super().__init__()
self.maxy = 13
self.maxx = 30
self.summon()
option = ''
while True:
/r/Python
https://redd.it/1jacy4v
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
I made a job board aggregator that uses LLMs to find Python jobs with your exact stack
Hey r/Python,
I built a desktop app called First 2 Apply that I wanted to share.
What My Project Does It's a job board aggregator that uses LLMs to filter jobs based on specific tech stack requirements. The app analyzes both job titles and full descriptions through an LLM to determine if a position truly matches your criteria, rather than just using keyword matching.
Target Audience This is meant for developers who are job hunting and want to filter opportunities by very specific technical requirements. It's a production-ready desktop application that I built for my own job search and thought others might benefit from too.
Comparison Unlike traditional job boards where filtering is limited to keywords (which often miss context or return false positives), First 2 Apply uses AI to understand the actual requirements. For example, when searching for Python jobs, most aggregators would return results where Python is mentioned anywhere - even if it's just "nice to have" or the job actually requires 5 years of Django when you're a Flask developer. This tool can specifically find Python jobs that use Flask, PostgreSQL, and React, while excluding ones that require Django or MongoDB.
I use it to search for Python positions that match my
/r/Python
https://redd.it/1jae3rp
Hey r/Python,
I built a desktop app called First 2 Apply that I wanted to share.
What My Project Does It's a job board aggregator that uses LLMs to filter jobs based on specific tech stack requirements. The app analyzes both job titles and full descriptions through an LLM to determine if a position truly matches your criteria, rather than just using keyword matching.
Target Audience This is meant for developers who are job hunting and want to filter opportunities by very specific technical requirements. It's a production-ready desktop application that I built for my own job search and thought others might benefit from too.
Comparison Unlike traditional job boards where filtering is limited to keywords (which often miss context or return false positives), First 2 Apply uses AI to understand the actual requirements. For example, when searching for Python jobs, most aggregators would return results where Python is mentioned anywhere - even if it's just "nice to have" or the job actually requires 5 years of Django when you're a Flask developer. This tool can specifically find Python jobs that use Flask, PostgreSQL, and React, while excluding ones that require Django or MongoDB.
I use it to search for Python positions that match my
/r/Python
https://redd.it/1jae3rp
Reddit
From the Python community on Reddit: I made a job board aggregator that uses LLMs to find Python jobs with your exact stack
Posted by drakedemon - 8 votes and 5 comments
Multithreaded zip compression
I a writing a python tool that compress folders with some filtering done. I use the zipfile module with DEFLATED algorithm.
Looking for a way to multithread the compression loop, in such a way that the end result is highly compatible (so zip with DEFLATED or bz2) but not some fancy newer algorithm, it is for archiving stuff.
What are the best options ? Use threadpool (but I guess the CPU won’t be used enough). Using a third party open source library? Any rust wrapper available ?
Thanks for your answer
/r/Python
https://redd.it/1jakf5c
I a writing a python tool that compress folders with some filtering done. I use the zipfile module with DEFLATED algorithm.
Looking for a way to multithread the compression loop, in such a way that the end result is highly compatible (so zip with DEFLATED or bz2) but not some fancy newer algorithm, it is for archiving stuff.
What are the best options ? Use threadpool (but I guess the CPU won’t be used enough). Using a third party open source library? Any rust wrapper available ?
Thanks for your answer
/r/Python
https://redd.it/1jakf5c
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Does Django work on Inteliji Community Edition?
Can’t seem to install it. Im somewhat new to coding and I’ve been learning Django this week for a personal project. Can’t seem to install on my computer. Tried every method and searched online but can’t seem to find an answer that meets my needs.
/r/django
https://redd.it/1jagzwp
Can’t seem to install it. Im somewhat new to coding and I’ve been learning Django this week for a personal project. Can’t seem to install on my computer. Tried every method and searched online but can’t seem to find an answer that meets my needs.
/r/django
https://redd.it/1jagzwp
Reddit
From the django community on Reddit
Explore this post and more from the django community
Feedback on my Flask AuthService project for job applications
Hey everyone!
I’m currently job hunting and built this AuthService project to showcase my skills. It’s a Flask-based authentication system featuring user login, MFA (pyotp), and password reset functionality.
Additionally, I incorporated some basic DevOps concepts like Docker Compose and followed a repository architecture for better maintainability.
I’d love some constructive feedback—especially on code quality, security, and best practices—before adding it to my portfolio.
Any thoughts or suggestions would be greatly appreciated!
GitHub Repo: https://github.com/LeonR92/AuthService
Thanks a lot for your time! 🚀
/r/flask
https://redd.it/1jamvqi
Hey everyone!
I’m currently job hunting and built this AuthService project to showcase my skills. It’s a Flask-based authentication system featuring user login, MFA (pyotp), and password reset functionality.
Additionally, I incorporated some basic DevOps concepts like Docker Compose and followed a repository architecture for better maintainability.
I’d love some constructive feedback—especially on code quality, security, and best practices—before adding it to my portfolio.
Any thoughts or suggestions would be greatly appreciated!
GitHub Repo: https://github.com/LeonR92/AuthService
Thanks a lot for your time! 🚀
/r/flask
https://redd.it/1jamvqi
GitHub
GitHub - LeonR92/AuthService
Contribute to LeonR92/AuthService development by creating an account on GitHub.
Python Steering Council rejects PEP 736 – Shorthand syntax for keyword arguments at invocation
The Steering Council has rejected PEP 736, which proposed syntactic sugar for function calls with keyword arguments:
Here's the rejection notice and here's some previous discussion of the PEP on this subreddit.
/r/Python
https://redd.it/1jaorm1
The Steering Council has rejected PEP 736, which proposed syntactic sugar for function calls with keyword arguments:
f(x=) as shorthand for f(x=x).Here's the rejection notice and here's some previous discussion of the PEP on this subreddit.
/r/Python
https://redd.it/1jaorm1
Python Enhancement Proposals (PEPs)
PEP 736 – Shorthand syntax for keyword arguments at invocation | peps.python.org
This PEP proposes to introduce syntactic sugar f(x=) for the common pattern where a keyword argument has the same name as that of the variable corresponding to its value f(x=x).
Is it safe to put a CSRF_TOKEN inside the URL of a websocket-consumer connection?
In my app I have a WebSocket connection with a consumer to handle a live-chat and stuff and because in this consumer I have to generate an HTML form with a CSRF token in it, I'm currently passing the CSRF token from the WebSocket to the consumer via their *URL* if it's the correct word.
**Is this a safe thing to do?**
/r/django
https://redd.it/1jarlsx
In my app I have a WebSocket connection with a consumer to handle a live-chat and stuff and because in this consumer I have to generate an HTML form with a CSRF token in it, I'm currently passing the CSRF token from the WebSocket to the consumer via their *URL* if it's the correct word.
**Is this a safe thing to do?**
/r/django
https://redd.it/1jarlsx
Reddit
From the django community on Reddit
Explore this post and more from the django community
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/1jaqpdq
# 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/1jaqpdq
Redditinc
Reddit Rules
Reddit Rules - Reddit
Project Rusty Graph: Python Library for Knowledge Graphs from SQL Data
# What my project does
Rusty Graph is a high-performance graph database library with Python bindings written in Rust. It transforms SQL data into knowledge graphs, making it easy to discover relationships and patterns hidden in relational databases.
# Target Audience
Data scientists working with complex relational datasets
Developers building applications that need to traverse relationships
Anyone who's found SQL joins and subqueries limiting when trying to extract insights from connected data
# Implementation
The library bridges the gap between tabular data and graph-based analysis:
# Transform SQL data into a knowledge graph with minimal code
graph = rusty_graph.KnowledgeGraph()
graph.add_nodes(data=users_df, node_type='User', unique_id_field='user_id')
graph.add_connections(
data=purchases_df,
connection_type='PURCHASED',
source_type='User',
source_id_field='user_id',
target_type='Product',
target_id_field='product_id',
)
# Calculate insights directly on the graph
user_spending = graph.type_filter('User').traverse('PURCHASED').calculate(
expression='sum(price quantity)',
/r/Python
https://redd.it/1jamelh
# What my project does
Rusty Graph is a high-performance graph database library with Python bindings written in Rust. It transforms SQL data into knowledge graphs, making it easy to discover relationships and patterns hidden in relational databases.
# Target Audience
Data scientists working with complex relational datasets
Developers building applications that need to traverse relationships
Anyone who's found SQL joins and subqueries limiting when trying to extract insights from connected data
# Implementation
The library bridges the gap between tabular data and graph-based analysis:
# Transform SQL data into a knowledge graph with minimal code
graph = rusty_graph.KnowledgeGraph()
graph.add_nodes(data=users_df, node_type='User', unique_id_field='user_id')
graph.add_connections(
data=purchases_df,
connection_type='PURCHASED',
source_type='User',
source_id_field='user_id',
target_type='Product',
target_id_field='product_id',
)
# Calculate insights directly on the graph
user_spending = graph.type_filter('User').traverse('PURCHASED').calculate(
expression='sum(price quantity)',
/r/Python
https://redd.it/1jamelh
Reddit
From the Python community on Reddit: [Project] Rusty Graph: Python Library for Knowledge Graphs from SQL Data
Explore this post and more from the Python community
I am building a technical debt quantification tool for Python frameworks -- looking for feedback
Hey everyone,
I’m working on a tool that **automates technical debt analysis** for Python teams. One of the biggest frustrations I’ve seen is that **SonarQube applies generic rules but doesn’t detect which framework you’re using (Django, Flask, FastAPI, etc.)**.
🔹 **What it does:**
✅ **Auto-detects the framework** in your repo (**no manual setup needed**).
✅ **Applies custom SonarQube rules** tailored to that framework.
✅ Generates a **framework-aware technical debt report** so teams can prioritize fixes.
💡 The idea is to save teams from **writing custom rules manually** and provide **more meaningful insights on tech debt.**
🚀 **Looking for feedback!**
* Would this be useful for your team?
* What are your biggest frustrations with SonarQube & technical debt tracking?
* Any must-have features you’d like in something like this?
I’d love to hear your thoughts! If you’re interested in testing it, I can share early access. 😊
Thanks in advance! 🙌
/r/Python
https://redd.it/1jamcog
Hey everyone,
I’m working on a tool that **automates technical debt analysis** for Python teams. One of the biggest frustrations I’ve seen is that **SonarQube applies generic rules but doesn’t detect which framework you’re using (Django, Flask, FastAPI, etc.)**.
🔹 **What it does:**
✅ **Auto-detects the framework** in your repo (**no manual setup needed**).
✅ **Applies custom SonarQube rules** tailored to that framework.
✅ Generates a **framework-aware technical debt report** so teams can prioritize fixes.
💡 The idea is to save teams from **writing custom rules manually** and provide **more meaningful insights on tech debt.**
🚀 **Looking for feedback!**
* Would this be useful for your team?
* What are your biggest frustrations with SonarQube & technical debt tracking?
* Any must-have features you’d like in something like this?
I’d love to hear your thoughts! If you’re interested in testing it, I can share early access. 😊
Thanks in advance! 🙌
/r/Python
https://redd.it/1jamcog
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Convert Voice to Text
Hi, I hope everything's going well. I need to convert audio files to text. These would be recordings of my voice, and sometimes conversations with a group of people. Can you recommend any software or advice? I use Manjaro as my operating system. Thanks.
/r/Python
https://redd.it/1jappop
Hi, I hope everything's going well. I need to convert audio files to text. These would be recordings of my voice, and sometimes conversations with a group of people. Can you recommend any software or advice? I use Manjaro as my operating system. Thanks.
/r/Python
https://redd.it/1jappop
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
django-pghistory vs django-simple-history?
I am using Django + PostGres and the goal here is just tracing the events and build a timeline (x was added / removed from Y, value Z change from 1 to 2, etc.), not necessarily recover any state at a given time.
Any recommendations which library to use? Any remarks about either of them, what to consider, pitfalls, etc.?
Thanks!
/r/django
https://redd.it/1jabg92
I am using Django + PostGres and the goal here is just tracing the events and build a timeline (x was added / removed from Y, value Z change from 1 to 2, etc.), not necessarily recover any state at a given time.
Any recommendations which library to use? Any remarks about either of them, what to consider, pitfalls, etc.?
Thanks!
/r/django
https://redd.it/1jabg92
Reddit
From the django community on Reddit
Explore this post and more from the django community
Matlab's variable explorer is amazing. What's pythons closest?
Hi all,
Long time python user. Recently needed to use Matlab for a customer. They had a large data set saved in their native *mat file structure.
It was so simple and easy to explore the data within the structure without needing any code itself. It made extracting the data I needed super quick and simple. Made me wonder if anything similar exists in Python?
I know Spyder has a variable explorer (which is good) but it dies as soon as the data structure is remotely complex.
I will likely need to do this often with different data sets.
Background: I'm converting a lot of the code from an academic research group to run in p.
/r/Python
https://redd.it/1jb1gzp
Hi all,
Long time python user. Recently needed to use Matlab for a customer. They had a large data set saved in their native *mat file structure.
It was so simple and easy to explore the data within the structure without needing any code itself. It made extracting the data I needed super quick and simple. Made me wonder if anything similar exists in Python?
I know Spyder has a variable explorer (which is good) but it dies as soon as the data structure is remotely complex.
I will likely need to do this often with different data sets.
Background: I'm converting a lot of the code from an academic research group to run in p.
/r/Python
https://redd.it/1jb1gzp
Reddit
From the Python community on Reddit
Explore this post and more from the Python community