🚀 FlaskGuard – Plug-and-Play Firewall for Flask Apps (Open Source)
Hey Flask devs! 👋
I just released **FlaskGuard**, a plug-and-play firewall library for Flask applications. It protects your app from common web vulnerabilities like SQL injection, XSS, path traversal, and more. 🛡️
---
### **What My Project Does:**
FlaskGuard analyzes incoming HTTP requests in real-time and blocks malicious patterns such as SQL injection, XSS, path traversal, command injection, and more. It's designed to act as a security layer for any Flask web app with minimal setup required.
---
### **Target Audience:**
This project is meant for **Flask developers** who are building production-ready applications and want a lightweight but effective first line of defense against common web threats. Whether you're running a small API or a larger web service, FlaskGuard can help secure it.
---
### **Comparison:**
Unlike more complex full-stack WAFs or security middleware that require external setups (like ModSecurity), **FlaskGuard** is built purely in Python, installs via `pip`, and integrates directly with Flask. It requires zero configuration to get started but is fully extensible for advanced users.
---
### **🔒 Features:**
- Detects and blocks malicious requests.
- ⚙️ Configurable rules and whitelisting.
- 🧩 Seamless Flask integration.
- 📄 Logging with color-coded output for quick threat analysis.
- 🧠 Supports detection of common vulnerabilities.
---
### **📦 Installation:**
From PyPI:
```bash
pip install safe-flask
```
From GitHub:
```bash
pip install git+https://github.com/CodeGuardianSOF/FlaskGuard.git
```
---
### **📚 Example Usage:**
```python
from
/r/Python
https://redd.it/1kdq1zy
Hey Flask devs! 👋
I just released **FlaskGuard**, a plug-and-play firewall library for Flask applications. It protects your app from common web vulnerabilities like SQL injection, XSS, path traversal, and more. 🛡️
---
### **What My Project Does:**
FlaskGuard analyzes incoming HTTP requests in real-time and blocks malicious patterns such as SQL injection, XSS, path traversal, command injection, and more. It's designed to act as a security layer for any Flask web app with minimal setup required.
---
### **Target Audience:**
This project is meant for **Flask developers** who are building production-ready applications and want a lightweight but effective first line of defense against common web threats. Whether you're running a small API or a larger web service, FlaskGuard can help secure it.
---
### **Comparison:**
Unlike more complex full-stack WAFs or security middleware that require external setups (like ModSecurity), **FlaskGuard** is built purely in Python, installs via `pip`, and integrates directly with Flask. It requires zero configuration to get started but is fully extensible for advanced users.
---
### **🔒 Features:**
- Detects and blocks malicious requests.
- ⚙️ Configurable rules and whitelisting.
- 🧩 Seamless Flask integration.
- 📄 Logging with color-coded output for quick threat analysis.
- 🧠 Supports detection of common vulnerabilities.
---
### **📦 Installation:**
From PyPI:
```bash
pip install safe-flask
```
From GitHub:
```bash
pip install git+https://github.com/CodeGuardianSOF/FlaskGuard.git
```
---
### **📚 Example Usage:**
```python
from
/r/Python
https://redd.it/1kdq1zy
Reddit
🚀 FlaskGuard – Plug-and-Play Firewall for Flask Apps (Open Source) : r/Python
18 votes, 10 comments. 1.4M subscribers in the Python community. The official Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language.
---
If you have questions or are…
---
If you have questions or are…
How go about with modular monolithic architecture
# Hello guys, hope you're doing good
I'm working on an ecommerce site project using fastapi and next-js, so I would like some insides and advice on the architecture. Firstly I was thinking to go with microservice architecture, but I was overwhelmed by it's complexity, so I made some research and found out people suggesting that better to start with modular monolithic, which emphasizes dividing each component into a separate module, but
Couple concerns here:
Communication between modules: If anyone have already build a project using a similar approach then how should modules communicate in a decoupled manner, some have suggested using an even bus instead of rabbitMQ since the architecture is still a monolith.
A simple scenario here, I have a notification module and a user module, so when a new user creates an account the notification should be able to receive the email and sends it in the background.
I've seen how popular this architecture is .NET Ecosystem.
Thank you in advance
/r/Python
https://redd.it/1kdroea
# Hello guys, hope you're doing good
I'm working on an ecommerce site project using fastapi and next-js, so I would like some insides and advice on the architecture. Firstly I was thinking to go with microservice architecture, but I was overwhelmed by it's complexity, so I made some research and found out people suggesting that better to start with modular monolithic, which emphasizes dividing each component into a separate module, but
Couple concerns here:
Communication between modules: If anyone have already build a project using a similar approach then how should modules communicate in a decoupled manner, some have suggested using an even bus instead of rabbitMQ since the architecture is still a monolith.
A simple scenario here, I have a notification module and a user module, so when a new user creates an account the notification should be able to receive the email and sends it in the background.
I've seen how popular this architecture is .NET Ecosystem.
Thank you in advance
/r/Python
https://redd.it/1kdroea
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How to shut down a Flask app without killing the process it's in?
I have a separate process to run my Flask app. I'm currently shutting it down by making it so that when a request is made to the
def shutdownserver():
"""Helper function for shutdown route"""
print("Shutting down Flask server...")
pid = os.getpid()
assert pid == PID
os.kill(pid, signal.SIGINT)
@bp.route("/shutdown")
def shutdown():
"""Shutdown the Flask app by mimicking CTRL+C"""
shutdownserver()
return "OK", 200
but I want to have the Python thread the app's running in do some stuff, then close itself with
app=createapp()
if name=="main":
try:
app.run(debug=True, usereloader=False)
/r/flask
https://redd.it/1ke1e5h
I have a separate process to run my Flask app. I'm currently shutting it down by making it so that when a request is made to the
/shutdown route, it runs os.kill(os.getpid(), signal.SIGINT like:def shutdownserver():
"""Helper function for shutdown route"""
print("Shutting down Flask server...")
pid = os.getpid()
assert pid == PID
os.kill(pid, signal.SIGINT)
@bp.route("/shutdown")
def shutdown():
"""Shutdown the Flask app by mimicking CTRL+C"""
shutdownserver()
return "OK", 200
but I want to have the Python thread the app's running in do some stuff, then close itself with
sys.exit(0) so that it can be picked up by a listener in another app. So, in the `run.py` file, it would look like:app=createapp()
if name=="main":
try:
app.run(debug=True, usereloader=False)
/r/flask
https://redd.it/1ke1e5h
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
🚀AtlasServer-Core — Admin panel for local Flask deployments
Hey everyone! I’ve just released AtlasServer-Core, an open-source admin panel that lets you spin up, manage and tear down your Flask apps locally—no Docker, no cloud needed.
Key features
🔹 One-click start/stop/delete of your Flask apps
🔹 Automatic Ngrok tunnel creation for public demos
🔹 Built-in auth & basic roles
🔹 Real-time log viewer
It’s still early, so any feedback on usability, stability or missing features is super welcome. You can check it out or grab the code here: 👉 https://github.com/AtlasServer-Core/AtlasServer-Core
Thanks for taking a look! 🙏
/r/flask
https://redd.it/1kdbyfg
Hey everyone! I’ve just released AtlasServer-Core, an open-source admin panel that lets you spin up, manage and tear down your Flask apps locally—no Docker, no cloud needed.
Key features
🔹 One-click start/stop/delete of your Flask apps
🔹 Automatic Ngrok tunnel creation for public demos
🔹 Built-in auth & basic roles
🔹 Real-time log viewer
It’s still early, so any feedback on usability, stability or missing features is super welcome. You can check it out or grab the code here: 👉 https://github.com/AtlasServer-Core/AtlasServer-Core
Thanks for taking a look! 🙏
/r/flask
https://redd.it/1kdbyfg
GitHub
GitHub - AtlasServer-Core/AtlasServer-Core: 💻 Fast deploy. No cloud. Just code.
💻 Fast deploy. No cloud. Just code. Contribute to AtlasServer-Core/AtlasServer-Core development by creating an account on GitHub.
Sunday Daily Thread: What's everyone working on this week?
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1ke6s0y
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1ke6s0y
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
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