After #ruff and #uv, #astral announced their next tool for the python ecosystem
A new type checker for python (like e.g. mypy or pyright) called Ty
- Ty: A new Python type checker (previously codenamed "Rednot")
- The team has been working on it for almost a year
- The name follows Astral's pattern of short, easy-to-type commands (like "ty check")
Source: https://www.youtube.com/watch?v=XVwpL_cAvrw
In your own opinion, after this, what tool do you think they should work on next in the python ecosystem?
Edit: Development is in the ruff repo under the red-knot label.
https://github.com/astral-sh/ruff/issues?q=%20label%3Ared-knot%20
There's also an online playground.
- https://types.ruff.rs/
/r/Python
https://redd.it/1kdui8w
A new type checker for python (like e.g. mypy or pyright) called Ty
- Ty: A new Python type checker (previously codenamed "Rednot")
- The team has been working on it for almost a year
- The name follows Astral's pattern of short, easy-to-type commands (like "ty check")
Source: https://www.youtube.com/watch?v=XVwpL_cAvrw
In your own opinion, after this, what tool do you think they should work on next in the python ecosystem?
Edit: Development is in the ruff repo under the red-knot label.
https://github.com/astral-sh/ruff/issues?q=%20label%3Ared-knot%20
There's also an online playground.
- https://types.ruff.rs/
/r/Python
https://redd.it/1kdui8w
YouTube
ty: Astral's New Type Checker (Formerly Red-Knot) - Talk Python to Me Ep. 506
The folks over at Astral have made some big-time impacts in the Python space with uv and ruff. They are back with another amazing project named ty. You may have known it as Red-Knot. But it's coming up on release time for the first version and with the release…
I wasted 6 months on a Django project… to learn one simple lesson.
Last year, I had an idea to build a new kind of social network using Django—minimalist, interest-based, no toxic algorithms, just real conversations.
I was fully committed.
I spent six months coding everything with Django: authentication, personalized feed, post creation, moderation, notifications… it all seemed perfect.
But I forgot one thing: no one was waiting for it.
When I finally launched it… crickets.
A few positive comments, but nothing that justified six months of hard work. That’s when the lesson hit me.
I should have built a simple prototype in just one week.
Got real feedback. Made pivots. Or moved on to something better.
Now, with every Django project, I focus on building something testable in days, not months.
Build fast. Show early. That’s how you make real progress.
Anyone else experienced this? Or maybe you're working on a similar project right now?
/r/django
https://redd.it/1keh3sz
Last year, I had an idea to build a new kind of social network using Django—minimalist, interest-based, no toxic algorithms, just real conversations.
I was fully committed.
I spent six months coding everything with Django: authentication, personalized feed, post creation, moderation, notifications… it all seemed perfect.
But I forgot one thing: no one was waiting for it.
When I finally launched it… crickets.
A few positive comments, but nothing that justified six months of hard work. That’s when the lesson hit me.
I should have built a simple prototype in just one week.
Got real feedback. Made pivots. Or moved on to something better.
Now, with every Django project, I focus on building something testable in days, not months.
Build fast. Show early. That’s how you make real progress.
Anyone else experienced this? Or maybe you're working on a similar project right now?
/r/django
https://redd.it/1keh3sz
Reddit
From the django community on Reddit
Explore this post and more from the django community
Is there a way to create a video streaming app like Netflix on flask with out using AWS ? It can be a mini version of Netflix and not exactly like Netflix.I would like to know your thoughts
/r/flask
https://redd.it/1kebdyd
/r/flask
https://redd.it/1kebdyd
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Django firefly tasks - simple and easy to use background tasks in Django
What My Project Does
Simple and easy to use background tasks in Django without dependencies!
Documentation: https://lukas346.github.io/django\_firefly\_tasks/
Github: https://github.com/lukas346/django\_firefly\_tasks
Features
⚡ Easy background task creation
🛤️ Multiple queue support
🔄 Automatic task retrying
🛠️ Well integrated with your chosen database
🚫 No additional dependencies
🔀 Supports both sync and async functions
Target Audience
Is it meant for production/hobby projects
Comparison
It's really easy to use without extra databases/dependencies and it's support retry on fail.
/r/Python
https://redd.it/1kei45r
What My Project Does
Simple and easy to use background tasks in Django without dependencies!
Documentation: https://lukas346.github.io/django\_firefly\_tasks/
Github: https://github.com/lukas346/django\_firefly\_tasks
Features
⚡ Easy background task creation
🛤️ Multiple queue support
🔄 Automatic task retrying
🛠️ Well integrated with your chosen database
🚫 No additional dependencies
🔀 Supports both sync and async functions
Target Audience
Is it meant for production/hobby projects
Comparison
It's really easy to use without extra databases/dependencies and it's support retry on fail.
/r/Python
https://redd.it/1kei45r
GitHub
GitHub - lukas346/django_firefly_tasks: Simple and easy to use background tasks in Django without dependencies!
Simple and easy to use background tasks in Django without dependencies! - lukas346/django_firefly_tasks
Future of Django UI - Vue-like components with reactivity and AlpineJS (help wanted)
I'm one of authors of django-components. I'm also maintaining one mid-sized Django web app to pay the bills (and using it as a playground for experiments).
Using JavaScript with django-components (or any alternatives) is still clunky - HTMX forces you to use solely the HTML fragment paradigm. AlpineJS is more flexible in this case, but you still need to somehow pass the data from Python to JS, and it gets messy once you need to pass Alpine variables across 5 or more templates.
However, we just designed how it would be possible to write UI components with clean JS integration - Vue-like components on top of django-components and AlpineJS.
This has been at the back of my head for almost a year now, so I'm glad we finally got clear steps for implementation. You can read more details here.
Let me know what y'all think.
PS: There's still lots to build. The end goal is to be able to write Vue files directly in Python, and to port Vuetify component library to Python. If you want to see this come to fruition, support us with your time, money, talk about this project, or help us with grant applications!
\---
Here's how it would look like:
First, in
/r/django
https://redd.it/1kelk38
I'm one of authors of django-components. I'm also maintaining one mid-sized Django web app to pay the bills (and using it as a playground for experiments).
Using JavaScript with django-components (or any alternatives) is still clunky - HTMX forces you to use solely the HTML fragment paradigm. AlpineJS is more flexible in this case, but you still need to somehow pass the data from Python to JS, and it gets messy once you need to pass Alpine variables across 5 or more templates.
However, we just designed how it would be possible to write UI components with clean JS integration - Vue-like components on top of django-components and AlpineJS.
This has been at the back of my head for almost a year now, so I'm glad we finally got clear steps for implementation. You can read more details here.
Let me know what y'all think.
PS: There's still lots to build. The end goal is to be able to write Vue files directly in Python, and to port Vuetify component library to Python. If you want to see this come to fruition, support us with your time, money, talk about this project, or help us with grant applications!
\---
Here's how it would look like:
First, in
/r/django
https://redd.it/1kelk38
GitHub
JuroOravec - Overview
Open source fam, ~7 yrs of web dev (Vue), language-agnostic. Been at BenevolentAI, Exponea, freelancing at Toptal. Bringing Vue and Vuetify to Python. - JuroOravec
AsyncMQ – Async-native task queue for Python with Redis, retries, TTL, job events, and CLI support
What the project does:
AsyncMQ is a modern, async-native task queue for Python. It was built from the ground up to fully support asyncio and comes with:
Redis and NATS backends
Retry strategies, TTLs, and dead-letter queues
Pub/sub job events
Optional PostgreSQL/MongoDB-based job store
Metadata, filtering, querying
A CLI for job management
A lot more...
Integration-ready with any async Python stack
Official docs: https://asyncmq.dymmond.com
GitHub: https://github.com/dymmond/asyncmq
Target Audience:
AsyncMQ is meant for developers building production-grade async services in Python, especially those frustrated with legacy tools like Celery or RQ when working with async code. It’s also suitable for hobbyists and framework authors who want a fast, native queue system without heavy dependencies.
Comparison:
Unlike Celery, AsyncMQ is async-native and doesn’t require blocking workers or complex setup.
Compared to RQ, it supports pub/sub, TTL, retries, and job metadata natively.
Inspired by BullMQ (Node.js), it offers similar patterns like job events, queues, and job stores.
Works seamlessly with modern tools like asyncz for scheduling.
Works seamlessly with modern ASGI frameworks like Esmerald, FastAPI, Sanic, Quartz....
In the upcoming version, the Dashboard UI will be coming too as it's a nice to have for those who enjoy a nice look and feel on top of these tools.
Would love feedback, questions, or
/r/Python
https://redd.it/1kefrsj
What the project does:
AsyncMQ is a modern, async-native task queue for Python. It was built from the ground up to fully support asyncio and comes with:
Redis and NATS backends
Retry strategies, TTLs, and dead-letter queues
Pub/sub job events
Optional PostgreSQL/MongoDB-based job store
Metadata, filtering, querying
A CLI for job management
A lot more...
Integration-ready with any async Python stack
Official docs: https://asyncmq.dymmond.com
GitHub: https://github.com/dymmond/asyncmq
Target Audience:
AsyncMQ is meant for developers building production-grade async services in Python, especially those frustrated with legacy tools like Celery or RQ when working with async code. It’s also suitable for hobbyists and framework authors who want a fast, native queue system without heavy dependencies.
Comparison:
Unlike Celery, AsyncMQ is async-native and doesn’t require blocking workers or complex setup.
Compared to RQ, it supports pub/sub, TTL, retries, and job metadata natively.
Inspired by BullMQ (Node.js), it offers similar patterns like job events, queues, and job stores.
Works seamlessly with modern tools like asyncz for scheduling.
Works seamlessly with modern ASGI frameworks like Esmerald, FastAPI, Sanic, Quartz....
In the upcoming version, the Dashboard UI will be coming too as it's a nice to have for those who enjoy a nice look and feel on top of these tools.
Would love feedback, questions, or
/r/Python
https://redd.it/1kefrsj
GitHub
GitHub - dymmond/asyncmq: Supercharge your async applications with tasks so fast, you’ll think you’re bending time itself.
Supercharge your async applications with tasks so fast, you’ll think you’re bending time itself. - dymmond/asyncmq
Built a plug-and-play firewall for Flask apps – looking for feedback and testers!
Hey everyone,
I’ve developed FlaskGuard, a plug-and-play firewall library for Flask applications. It aims to protect your app from common web vulnerabilities like SQL injection, XSS, path traversal, and more.
Key Features:
• Detects and blocks malicious requests
• Configurable rules and whitelist
• Easy integration with Flask applications
• Logging for blocked requests with color-coded output
• Detection for various attack vectors
Installation:
From PyPI:
pip install safe-flask
From GitHub:
pip install git+https://github.com/CodeGuardianSOF/FlaskGuard.git
Usage Example:
from flask import Flask
from flask_guard import FlaskGuard
app = Flask(__name__)
FlaskGuard(app)
I’m looking for feedback and testers to help improve the project. If you have suggestions, run into issues, or want to contribute, feel free to check out the GitHub repo:
https://github.com/CodeGuardianSOF/FlaskGuard
Thanks in advance for your support!
/r/flask
https://redd.it/1kdclte
Hey everyone,
I’ve developed FlaskGuard, a plug-and-play firewall library for Flask applications. It aims to protect your app from common web vulnerabilities like SQL injection, XSS, path traversal, and more.
Key Features:
• Detects and blocks malicious requests
• Configurable rules and whitelist
• Easy integration with Flask applications
• Logging for blocked requests with color-coded output
• Detection for various attack vectors
Installation:
From PyPI:
pip install safe-flask
From GitHub:
pip install git+https://github.com/CodeGuardianSOF/FlaskGuard.git
Usage Example:
from flask import Flask
from flask_guard import FlaskGuard
app = Flask(__name__)
FlaskGuard(app)
I’m looking for feedback and testers to help improve the project. If you have suggestions, run into issues, or want to contribute, feel free to check out the GitHub repo:
https://github.com/CodeGuardianSOF/FlaskGuard
Thanks in advance for your support!
/r/flask
https://redd.it/1kdclte
GitHub
GitHub - CodeGuardianSOF/FlaskGuard: FlaskGuard is a plug-and-play firewall library for Flask applications.
FlaskGuard is a plug-and-play firewall library for Flask applications. - CodeGuardianSOF/FlaskGuard
Best way to install python package with all its dependencies on an offline pc.
OS is windows 10 on both PC's.
Currently I do the following on an internet connected pc...
python -m venv /pathToDir
Then i cd into the dir and do
then I install the package in this
using
then I zip up the folder and copy it to the offline pc, ensuring the paths are the same.
Then I extract it, and do a find and replace in all files for
Also I ensure that the python version installed on both pc's is the same.
But i see that this method does not work reliably.. I managed to install
/r/Python
https://redd.it/1keaeft
OS is windows 10 on both PC's.
Currently I do the following on an internet connected pc...
python -m venv /pathToDir
Then i cd into the dir and do
.\scripts\activatethen I install the package in this
venv after that i deactivate the venv using
deactivatethen I zip up the folder and copy it to the offline pc, ensuring the paths are the same.
Then I extract it, and do a find and replace in all files for
c:\users\old_user to c:\users\new_userAlso I ensure that the python version installed on both pc's is the same.
But i see that this method does not work reliably.. I managed to install
open-webui this way but when i tried this with lightrag it failed due to some unknown reason./r/Python
https://redd.it/1keaeft
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How to import "getflashedmessages()" from flask
So I'm doing this lesson by Miguel Grinberg building a flask app. He has us installing a few packages and importing various functions, classes, and modules, including numerous imports from flask (such as the Flask class, and some functions:
He also uses the function
I was thinking that maybe it automatically imports, and maybe gets pulled along by importing (for example)
So what am I missing here?
Thanks for time on this matter and interest in helping me to resolve this.
/r/flask
https://redd.it/1kdc4ab
So I'm doing this lesson by Miguel Grinberg building a flask app. He has us installing a few packages and importing various functions, classes, and modules, including numerous imports from flask (such as the Flask class, and some functions:
render_template(), flash(), url_for(), redirect() ). He then deploys all of this into the app's files, which you can see listed here in his git hubHe also uses the function
get_flashed_messages(). But he never imports. That pattern/assemblage of characters (ie: "get_flashed_messages") is found only once in his git, within the body/text of the app/templates/base.html file, where he employs that function within the Jinja logic structure. But he never explicitly imports the function anywhere - at least no where I can see. How can this be?I was thinking that maybe it automatically imports, and maybe gets pulled along by importing (for example)
flash. But researching online, that apparently is not true. Apparently, the only way to import this function is by actually and explicitly writing the code to import it; ie: from flask import get_flashed_messages().So what am I missing here?
Thanks for time on this matter and interest in helping me to resolve this.
/r/flask
https://redd.it/1kdc4ab
Miguelgrinberg
The Flask Mega-Tutorial, Part III: Web Forms
This is the third installment of the Flask Mega-Tutorial series, in which I'm going to tell you how to work with web forms.You are reading the 2024 edition of the Flask Mega-Tutorial. The complete…
Django Firefly Tasks - simple and easy to use background tasks in Django
Simple and easy to use background tasks in Django without dependencies!
Documentation: https://lukas346.github.io/django\_firefly\_tasks/
Github: https://github.com/lukas346/django\_firefly\_tasks
Features
⚡ Easy background task creation
🛤️ Multiple queue support
🔄 Automatic task retrying
🛠️ Well integrated with your chosen database
🚫 No additional dependencies
🔀 Supports both sync and async functions
/r/django
https://redd.it/1keqqqe
Simple and easy to use background tasks in Django without dependencies!
Documentation: https://lukas346.github.io/django\_firefly\_tasks/
Github: https://github.com/lukas346/django\_firefly\_tasks
Features
⚡ Easy background task creation
🛤️ Multiple queue support
🔄 Automatic task retrying
🛠️ Well integrated with your chosen database
🚫 No additional dependencies
🔀 Supports both sync and async functions
/r/django
https://redd.it/1keqqqe
GitHub
GitHub - lukas346/django_firefly_tasks: Simple and easy to use background tasks in Django without dependencies!
Simple and easy to use background tasks in Django without dependencies! - lukas346/django_firefly_tasks
Monday Daily Thread: Project ideas!
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1key6k7
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1key6k7
YouTube
Build & Integrate your own custom chatbot to a website (Python & JavaScript)
In this fun project you learn how to build a custom chatbot in Python and then integrate this to a website using Flask and JavaScript.
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
🚀 Introducing TkRouter — Declarative Routing for Tkinter
Hey folks!
I just released TkRouter, a lightweight library that brings declarative routing to your multi-page Tkinter apps — with support for:
✨ Features:
-
- Query string parsing:
- Animated transitions (
- Route guards and redirect fallback logic
- Back/forward history stack
- Built-in navigation widgets:
Here’s a minimal example:
📦 Install via pip
📘 Docs
https://tkrouter.readthedocs.io
💻 GitHub
https://github.com/israel-dryer/tkrouter
🏁 Includes built-in demo commands like:
Would love feedback from fellow devs. Happy to answer questions or take
/r/Python
https://redd.it/1kew6fz
Hey folks!
I just released TkRouter, a lightweight library that brings declarative routing to your multi-page Tkinter apps — with support for:
✨ Features:
-
/users/<id> style dynamic routing - Query string parsing:
/logs?level=error - Animated transitions (
slide, fade) between pages - Route guards and redirect fallback logic
- Back/forward history stack
- Built-in navigation widgets:
RouteLinkButton, RouteLinkLabelHere’s a minimal example:
from tkinter import Tk
from tkrouter import create_router, get_router, RouterOutlet
from tkrouter.views import RoutedView
from tkrouter.widgets import RouteLinkButton
class Home(RoutedView):
def __init__(self, master):
super().__init__(master)
RouteLinkButton(self, "/about", text="Go to About").pack()
class About(RoutedView):
def __init__(self, master):
super().__init__(master)
RouteLinkButton(self, "/", text="Back to Home").pack()
ROUTES = {
"/": Home,
"/about": About,
}
root = Tk()
outlet = RouterOutlet(root)
outlet.pack(fill="both", expand=True)
create_router(ROUTES, outlet).navigate("/")
root.mainloop()
📦 Install via pip
pip install tkrouter
📘 Docs
https://tkrouter.readthedocs.io
💻 GitHub
https://github.com/israel-dryer/tkrouter
🏁 Includes built-in demo commands like:
tkrouter-demo-admin # sidebar layout with query params
tkrouter-demo-unified # /dashboard/stats with transitions
tkrouter-demo-guarded # simulate login and access guard
Would love feedback from fellow devs. Happy to answer questions or take
/r/Python
https://redd.it/1kew6fz
GitHub
GitHub - israel-dryer/TkRouter: TkRouter is a lightweight routing library for Tkinter, bringing modern declarative navigation,…
TkRouter is a lightweight routing library for Tkinter, bringing modern declarative navigation, animated transitions, nested routes, guards, and 404 handling to Python desktop apps. - israel-dryer/T...
Apk for sports forecasts
I have a super good page with football predictions, can anyone create an APK and put those predictions there? If it is possible?
/r/Python
https://redd.it/1kf29oy
I have a super good page with football predictions, can anyone create an APK and put those predictions there? If it is possible?
/r/Python
https://redd.it/1kf29oy
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
DVD Bouncing Animation
* **What My Project Does:** Creates a simple animation which (somewhat) replicates the old DVD logo bouncing animation displayed when a DVD is not inserted
* **Target Audience:** Anyone, just for fun
* **Comparison**: It occurs in the command window instead of a video
(Ensure windows-curse is installed by entering "pip install windows-curses" into command prompt.
GitHub: [https://github.com/daaleoo/DVD-Bouncing](https://github.com/daaleoo/DVD-Bouncing)
/r/Python
https://redd.it/1keblmk
* **What My Project Does:** Creates a simple animation which (somewhat) replicates the old DVD logo bouncing animation displayed when a DVD is not inserted
* **Target Audience:** Anyone, just for fun
* **Comparison**: It occurs in the command window instead of a video
(Ensure windows-curse is installed by entering "pip install windows-curses" into command prompt.
GitHub: [https://github.com/daaleoo/DVD-Bouncing](https://github.com/daaleoo/DVD-Bouncing)
/r/Python
https://redd.it/1keblmk
GitHub
GitHub - daaleoo/DVD-Bouncing: : Creates a simple animation which (somewhat) replicates the old DVD logo bouncing animation displayed…
: Creates a simple animation which (somewhat) replicates the old DVD logo bouncing animation displayed when a DVD is not inserted - GitHub - daaleoo/DVD-Bouncing: : Creates a simple animation whic...
Query about celery
Is someone who can send me a best free video link or documents to get knowledge about celery and channels in Django ?
/r/django
https://redd.it/1kf35j2
Is someone who can send me a best free video link or documents to get knowledge about celery and channels in Django ?
/r/django
https://redd.it/1kf35j2
Reddit
From the django community on Reddit
Explore this post and more from the django community
Data Structure Algorithm in python
Hey everyone! I'm currently learning Data Structures and Algorithms (DSA) using Python. I'd love to connect with others on the same journey maybe we can study, share resources, or solve problems together!
/r/Python
https://redd.it/1kf66ct
Hey everyone! I'm currently learning Data Structures and Algorithms (DSA) using Python. I'd love to connect with others on the same journey maybe we can study, share resources, or solve problems together!
/r/Python
https://redd.it/1kf66ct
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Read pdf as html
Hi,
Im looking for a way in python using opensource/paid, to read a pdf as html that contains bold italic, font size new lines, tab spaces etc parameters so that i can render it in UI directly and creating a new pdf based on any update in UI, please suggest me is there any options that can do this job with accuracy
/r/Python
https://redd.it/1kf640j
Hi,
Im looking for a way in python using opensource/paid, to read a pdf as html that contains bold italic, font size new lines, tab spaces etc parameters so that i can render it in UI directly and creating a new pdf based on any update in UI, please suggest me is there any options that can do this job with accuracy
/r/Python
https://redd.it/1kf640j
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
ChatForge: A free, open-source AI chat client with 300+ models (GPT-4, Claude 3, etc.)—no subscriptions, pay-per-token!
I’ve been working on ChatForge—a no-BS, open-source chat client that lets you access 318+ AI models (GPT-4.1 Mini, Claude 3.7, Qwen, Gemini, etc.) from one dashboard. No upfront costs, no monthly fees—just pay for tokens you actually use.
Why bother?
Free-tier models: Test drive without even adding a payment method.
Persistent chats: Name/organize convos like files (RIP losing your 2am AI rants).
Customizable: Set default models, API keys, etc.
Simple UI: Not a design award winner, but it’s clean and functional (I’m a dev, not a designer—sue me).
It’s 100% free and community-driven. I’d love feedback (or contributions if you’re into Python/Django).
Try it or roast it:
🔗 GitHub
P.S. If you’ve tried similar tools (like OpenRouter’s web UI), how’s this compare? Honest takes welcome.
/r/django
https://redd.it/1kf89nu
I’ve been working on ChatForge—a no-BS, open-source chat client that lets you access 318+ AI models (GPT-4.1 Mini, Claude 3.7, Qwen, Gemini, etc.) from one dashboard. No upfront costs, no monthly fees—just pay for tokens you actually use.
Why bother?
Free-tier models: Test drive without even adding a payment method.
Persistent chats: Name/organize convos like files (RIP losing your 2am AI rants).
Customizable: Set default models, API keys, etc.
Simple UI: Not a design award winner, but it’s clean and functional (I’m a dev, not a designer—sue me).
It’s 100% free and community-driven. I’d love feedback (or contributions if you’re into Python/Django).
Try it or roast it:
🔗 GitHub
P.S. If you’ve tried similar tools (like OpenRouter’s web UI), how’s this compare? Honest takes welcome.
/r/django
https://redd.it/1kf89nu
GitHub
GitHub - yonetici/chatforge-web: ChatForge is a Django-based desktop-style chat application that integrates with multiple AI backends…
ChatForge is a Django-based desktop-style chat application that integrates with multiple AI backends (via OpenRouter) - yonetici/chatforge-web
Read pdf as html
Hi,
Im looking for a way in python using opensource/paid, to read a pdf as html that contains bold italic, font size new lines, tab spaces etc parameters so that i can render it in UI directly and creating a new pdf based on any update in UI, please suggest me is there any options that can do this job with accuracy
/r/Python
https://redd.it/1kf641m
Hi,
Im looking for a way in python using opensource/paid, to read a pdf as html that contains bold italic, font size new lines, tab spaces etc parameters so that i can render it in UI directly and creating a new pdf based on any update in UI, please suggest me is there any options that can do this job with accuracy
/r/Python
https://redd.it/1kf641m
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How would you handle achievements and achievement progress n a Django app?
I’m working on a Django web app where I want to introduce badges/achievements for users — things like:
* Play 10 random quizzes in a day
* Finish 100 quizzes in total
* Play 7 days in a row
Here’s the basic model setup I’m considering:
```
class Achievement(models.Model):
code = models.CharField(max_length=100, unique=True) # e.g., 'play_10_quizzes'
name = models.CharField(max_length=200)
description = models.TextField()
icon = models.ImageField(upload_to='achievement_icons/', null=True, blank=True)
class UserAchievement(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
achievement = models.ForeignKey(Achievement, on_delete=models.CASCADE)
unlocked_at = models.DateTimeField(auto_now_add=True)
class Meta:
unique_together = ('user', 'achievement')
```
How best to save and calculate/track user progress toward an achievement?
I’ve been reading that using Django signals might not be the best approach here, and I’m wondering what patterns or architecture others have used.
**Specifically:**
* Do you calculate achievement progress dynamically (on the fly) when the frontend requests it?
* Or do you store progress in the database and increment it every time an action happens (e.g., quiz completed), so reads are faster?
* How do you handle edge cases, like historical data changes or deletions?
* Any tips on scaling this
/r/django
https://redd.it/1kf9a2b
I’m working on a Django web app where I want to introduce badges/achievements for users — things like:
* Play 10 random quizzes in a day
* Finish 100 quizzes in total
* Play 7 days in a row
Here’s the basic model setup I’m considering:
```
class Achievement(models.Model):
code = models.CharField(max_length=100, unique=True) # e.g., 'play_10_quizzes'
name = models.CharField(max_length=200)
description = models.TextField()
icon = models.ImageField(upload_to='achievement_icons/', null=True, blank=True)
class UserAchievement(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
achievement = models.ForeignKey(Achievement, on_delete=models.CASCADE)
unlocked_at = models.DateTimeField(auto_now_add=True)
class Meta:
unique_together = ('user', 'achievement')
```
How best to save and calculate/track user progress toward an achievement?
I’ve been reading that using Django signals might not be the best approach here, and I’m wondering what patterns or architecture others have used.
**Specifically:**
* Do you calculate achievement progress dynamically (on the fly) when the frontend requests it?
* Or do you store progress in the database and increment it every time an action happens (e.g., quiz completed), so reads are faster?
* How do you handle edge cases, like historical data changes or deletions?
* Any tips on scaling this
/r/django
https://redd.it/1kf9a2b
Reddit
From the django community on Reddit
Explore this post and more from the django community