Does it have a name? Weird spiral shape I made with the turtle module in Python
Hi, I accidentally made this geometric shape in Python and it looked really familiar, so I was wondering if it had a name or something
Thx :-)
Source code: https://pastebin.com/8T6tKEGK
The shape: https://imgur.com/a/1cmgWYt
/r/Python
https://redd.it/1m81n93
Hi, I accidentally made this geometric shape in Python and it looked really familiar, so I was wondering if it had a name or something
Thx :-)
Source code: https://pastebin.com/8T6tKEGK
The shape: https://imgur.com/a/1cmgWYt
/r/Python
https://redd.it/1m81n93
Pastebin
spiral_thing - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Flask-Nova: A New Flask Extension for Zero-Boilerplate APIs with Auto Docs & Type Safety
Hey r/flask,
As much as we love Flask for its simplicity and flexibility, let's be real: building modern APIs with authentication, validation, and proper documentation can become a repetitive grind. I kept finding myself writing the same boilerplate code project after project.
That's why I'm excited to share **Flask-Nova** – a new extension for Flask designed to drastically accelerate API development!
# What is Flask-Nova?
Flask-Nova is a modern extension that helps you build APIs faster by baking in essential features like:
Automatic OpenAPI/Swagger docs (`/docs`): Get interactive API documentation with zero extra effort. No more hand-written docs.
Type-safe input models: Define your request data using Pydantic-style models, ensuring automatic validation and cleaner code.
Decorator-based routing: Define your API endpoints with simple, elegant decorators – say goodbye to verbose boilerplate.
Built-in HTTPException: Handle API errors cleanly and consistently with semantic HTTP status codes.
Status helpers: Use intuitive constants like `status.CREATED`, `status.BAD_REQUEST`, etc.
Extensible and Pythonic design: Built with Flask developers in mind, it feels natural and easy to extend.
Compatible with native Flask: Seamlessly integrates into your existing Flask applications.
# Why should you check it
/r/flask
https://redd.it/1m81swl
Hey r/flask,
As much as we love Flask for its simplicity and flexibility, let's be real: building modern APIs with authentication, validation, and proper documentation can become a repetitive grind. I kept finding myself writing the same boilerplate code project after project.
That's why I'm excited to share **Flask-Nova** – a new extension for Flask designed to drastically accelerate API development!
# What is Flask-Nova?
Flask-Nova is a modern extension that helps you build APIs faster by baking in essential features like:
Automatic OpenAPI/Swagger docs (`/docs`): Get interactive API documentation with zero extra effort. No more hand-written docs.
Type-safe input models: Define your request data using Pydantic-style models, ensuring automatic validation and cleaner code.
Decorator-based routing: Define your API endpoints with simple, elegant decorators – say goodbye to verbose boilerplate.
Built-in HTTPException: Handle API errors cleanly and consistently with semantic HTTP status codes.
Status helpers: Use intuitive constants like `status.CREATED`, `status.BAD_REQUEST`, etc.
Depend() for Dependency Injection: Write cleaner, more modular, and testable code by easily injecting dependencies into your route handlers.Extensible and Pythonic design: Built with Flask developers in mind, it feels natural and easy to extend.
Compatible with native Flask: Seamlessly integrates into your existing Flask applications.
# Why should you check it
/r/flask
https://redd.it/1m81swl
GitHub
GitHub - manitreasure1/flasknova: Modern Flask API framework with FastAPI-style routing, validation, OpenAPI docs, and plug-and…
Modern Flask API framework with FastAPI-style routing, validation, OpenAPI docs, and plug-and-play auth. - manitreasure1/flasknova
Flask-Nova – A Lightweight Extension to Modernize Flask API Development
Flask is great, but building APIs often means repeating the same boilerplate — decorators, validation, error handling, and docs. I built Flask-Nova to solve that.
## What It Does
Flask-Nova is a lightweight Flask extension that simplifies API development with:
- Auto-generated Swagger docs
- Type-safe request models (Pydantic-style)
- Clean decorator-based routing
- Built-in dependency injection (
- Structured HTTP error/status helpers
## Target Audience
For Flask devs who:
- Build APIs often and want to avoid repetitive setup
- Like Flask’s flexibility but want better tooling
## Comparison
Compared to Flask: Removes boilerplate for routing, validation, and
## Install
## Links
- GitHub: https://github.com/manitreasure1/flasknova
- PyPI: https://pypi.org/project/flask-nova/
- Example App: https://github.com/manitreasure1/flask-nova-tutorials
/r/Python
https://redd.it/1m82flz
Flask is great, but building APIs often means repeating the same boilerplate — decorators, validation, error handling, and docs. I built Flask-Nova to solve that.
## What It Does
Flask-Nova is a lightweight Flask extension that simplifies API development with:
- Auto-generated Swagger docs
- Type-safe request models (Pydantic-style)
- Clean decorator-based routing
- Built-in dependency injection (
Depend())- Structured HTTP error/status helpers
## Target Audience
For Flask devs who:
- Build APIs often and want to avoid repetitive setup
- Like Flask’s flexibility but want better tooling
## Comparison
Compared to Flask: Removes boilerplate for routing, validation, and
## Install
pip install flask-nova
## Links
- GitHub: https://github.com/manitreasure1/flasknova
- PyPI: https://pypi.org/project/flask-nova/
- Example App: https://github.com/manitreasure1/flask-nova-tutorials
/r/Python
https://redd.it/1m82flz
GitHub
GitHub - manitreasure1/flasknova: Modern Flask API framework with FastAPI-style routing, validation, OpenAPI docs, and plug-and…
Modern Flask API framework with FastAPI-style routing, validation, OpenAPI docs, and plug-and-play auth. - manitreasure1/flasknova
A very modular framework for RAG setup in some lines of code
Hey everyone,
I've been working on a lightweight Retrieval-Augmented Generation (RAG) framework designed to make it super easy to setup a RAG for newbies.
**Why did I make this?**
Most RAG frameworks are either too heavy, over-engineered, or locked into cloud providers. I wanted a minimal, open-source alternative you can be flexible.
**Tech stack:**
* Python
* Ollama for local LLM/embedding
* ChromaDB for fast vector storage/retrieval
**What I'd love feedback on:**
* General code structure
* Anything that feels confusing, overcomplicated, or could be made more pythonic
**Repo:**
👉 [https://github.com/Bessouat40/RAGLight](https://github.com/Bessouat40/RAGLight)
Feel free to roast the code, nitpick the details, or just let me know if something is unclear! All constructive feedback very welcome, even if it's harsh – I really want to improve.
Thanks in advance!
/r/Python
https://redd.it/1m860pg
Hey everyone,
I've been working on a lightweight Retrieval-Augmented Generation (RAG) framework designed to make it super easy to setup a RAG for newbies.
**Why did I make this?**
Most RAG frameworks are either too heavy, over-engineered, or locked into cloud providers. I wanted a minimal, open-source alternative you can be flexible.
**Tech stack:**
* Python
* Ollama for local LLM/embedding
* ChromaDB for fast vector storage/retrieval
**What I'd love feedback on:**
* General code structure
* Anything that feels confusing, overcomplicated, or could be made more pythonic
**Repo:**
👉 [https://github.com/Bessouat40/RAGLight](https://github.com/Bessouat40/RAGLight)
Feel free to roast the code, nitpick the details, or just let me know if something is unclear! All constructive feedback very welcome, even if it's harsh – I really want to improve.
Thanks in advance!
/r/Python
https://redd.it/1m860pg
GitHub
GitHub - Bessouat40/RAGLight: RAGLight is a modular framework for Retrieval-Augmented Generation (RAG). It makes it easy to plug…
RAGLight is a modular framework for Retrieval-Augmented Generation (RAG). It makes it easy to plug in different LLMs, embeddings, and vector stores, and now includes seamless MCP integration to con...
D - NeurIPS'2025 D&B Track
# Hey everyone,
I think it's a good idea to have a separate discussion for the datasets and benchmarks track, feel free to share your scores or any other relevant feedback.
Let’s keep things constructive and supportive. Good luck to all!
/r/MachineLearning
https://redd.it/1m8ad4q
# Hey everyone,
I think it's a good idea to have a separate discussion for the datasets and benchmarks track, feel free to share your scores or any other relevant feedback.
Let’s keep things constructive and supportive. Good luck to all!
/r/MachineLearning
https://redd.it/1m8ad4q
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
spamfilter: The super easy, yet highly advanced all-rounder for spam filtering
Hey there, Python friends!
I'm the maintainer of [spamfilter](https://github.com/mags0ft/spamfilter), a project I started a few years ago and have been working on ever since. In the recent days and months, I've spent significant time overhauling it - and now I'm happy to present the second iteration of it to you!
It's now quite literally easier than ever to stick together a spam filter that catches an **impressive amount of slop**, which is super valuable for people working on online interactive experiences involving Python (like Flask/Django websites, Discord bots, ...)
My library features:
* the concept of **abstracting more complex spam filters into so-called "pipelines"** to make your spam filtering rules easily understandable, pythonic and object-oriented
* a big collection of **pre-made spam filters** that allow you to build your own pipelines right away
* some pre-made pipelines for commonly used scenarios like **article websites and online chats**
* an all-new and (humbly said) nice [documentation](https://mags0ft.github.io/spamfilter/) with a lot of details
* **third-party API support** if you want it
* and, because everyone does it, an optional **deep integration** with AI providers and 🤗 Transformer models to detect spam quickly
A quick taste test to show you how the most basic usage would look like:
```python
from spamfilter.filters import Length, SpecialChars
from
/r/Python
https://redd.it/1m8gqr9
Hey there, Python friends!
I'm the maintainer of [spamfilter](https://github.com/mags0ft/spamfilter), a project I started a few years ago and have been working on ever since. In the recent days and months, I've spent significant time overhauling it - and now I'm happy to present the second iteration of it to you!
It's now quite literally easier than ever to stick together a spam filter that catches an **impressive amount of slop**, which is super valuable for people working on online interactive experiences involving Python (like Flask/Django websites, Discord bots, ...)
My library features:
* the concept of **abstracting more complex spam filters into so-called "pipelines"** to make your spam filtering rules easily understandable, pythonic and object-oriented
* a big collection of **pre-made spam filters** that allow you to build your own pipelines right away
* some pre-made pipelines for commonly used scenarios like **article websites and online chats**
* an all-new and (humbly said) nice [documentation](https://mags0ft.github.io/spamfilter/) with a lot of details
* **third-party API support** if you want it
* and, because everyone does it, an optional **deep integration** with AI providers and 🤗 Transformer models to detect spam quickly
A quick taste test to show you how the most basic usage would look like:
```python
from spamfilter.filters import Length, SpecialChars
from
/r/Python
https://redd.it/1m8gqr9
GitHub
GitHub - mags0ft/spamfilter: Streamlined, object-oriented and fully customizable python spam filter library.
Streamlined, object-oriented and fully customizable python spam filter library. - mags0ft/spamfilter
I'm building an "API as a service" and want to know how to overcome some challenges.
Hey devs, I’m building an API service focused on scraping, and I’m running into a problem.
The main problem I'm facing is having to manually build the client-side ability to self-create/revoke API keys, expiration dates, and billing based on the number of API calls.
Is there a service focused on helping solve this problem? Do you know of anything similar?
Appreciate any recommendations!
https://preview.redd.it/qasvl5xysvef1.png?width=2856&format=png&auto=webp&s=fd175766069a357b87703cf76c78695bc3f93fdb
/r/flask
https://redd.it/1m8fb54
Hey devs, I’m building an API service focused on scraping, and I’m running into a problem.
The main problem I'm facing is having to manually build the client-side ability to self-create/revoke API keys, expiration dates, and billing based on the number of API calls.
Is there a service focused on helping solve this problem? Do you know of anything similar?
Appreciate any recommendations!
https://preview.redd.it/qasvl5xysvef1.png?width=2856&format=png&auto=webp&s=fd175766069a357b87703cf76c78695bc3f93fdb
/r/flask
https://redd.it/1m8fb54
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1m8kf09
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1m8kf09
Redditinc
Reddit Rules
Reddit Rules - Reddit
Thoughts on Cinder, performance-oriented version of Python powering Instagram
Regarding Cinder, one of their reasons for open-sourcing the code, is
"to facilitate conversation about potentially upstreaming some of this work to CPython and to reduce duplication of effort among people working on CPython performance."
This seems like an established project, that has been open-sourced for a while.
Why has some of advancement made with this project, not been up-streamed into CPython?
Especially their approach to their JIT-compiler seems super useful.
/r/Python
https://redd.it/1m8ir4e
Regarding Cinder, one of their reasons for open-sourcing the code, is
"to facilitate conversation about potentially upstreaming some of this work to CPython and to reduce duplication of effort among people working on CPython performance."
This seems like an established project, that has been open-sourced for a while.
Why has some of advancement made with this project, not been up-streamed into CPython?
Especially their approach to their JIT-compiler seems super useful.
/r/Python
https://redd.it/1m8ir4e
GitHub
GitHub - facebookincubator/cinder: Cinder is Meta's internal performance-oriented production version of CPython.
Cinder is Meta's internal performance-oriented production version of CPython. - facebookincubator/cinder
Pytest.nvim - Neovim plugin to run pytest inside a Docker container (or outside of it)
Some time ago, I built a plugin that was very useful for my daily development in Django (at my job). I believe this plugin can be helpful for others!
https://github.com/richardhapb/pytest.nvim
/r/django
https://redd.it/1m8pbe9
Some time ago, I built a plugin that was very useful for my daily development in Django (at my job). I believe this plugin can be helpful for others!
https://github.com/richardhapb/pytest.nvim
/r/django
https://redd.it/1m8pbe9
GitHub
GitHub - richardhapb/pytest.nvim: Neovim plugin for Python testing
Neovim plugin for Python testing. Contribute to richardhapb/pytest.nvim development by creating an account on GitHub.
I'm building an "API as a service" and want to know how to overcome some challenges.
Hey devs, I’m building an API service focused on scraping, and I’m running into a problem.
The main problem I'm facing is having to manually build the client-side ability to self-create/revoke API keys, expiration dates, and billing based on the number of API calls.
Is there a service focused on helping solve this problem? Do you know of anything similar?
Appreciate any recommendations!
https://preview.redd.it/o3jkm5uisvef1.png?width=2856&format=png&auto=webp&s=79f63778eb183e5ddf3456ff6c882b7837e1ad07
/r/django
https://redd.it/1m8f8yb
Hey devs, I’m building an API service focused on scraping, and I’m running into a problem.
The main problem I'm facing is having to manually build the client-side ability to self-create/revoke API keys, expiration dates, and billing based on the number of API calls.
Is there a service focused on helping solve this problem? Do you know of anything similar?
Appreciate any recommendations!
https://preview.redd.it/o3jkm5uisvef1.png?width=2856&format=png&auto=webp&s=79f63778eb183e5ddf3456ff6c882b7837e1ad07
/r/django
https://redd.it/1m8f8yb
Saw All Those Idle PCs—So I Made a Tool to Use Them
Saw a pattern at large companies: most laptops and desktops are just sitting there, barely using their processing power. Devs aren’t always running heavy stuff, and a lot of machines are just idle for hours.
What My Project Does:
So, I started this project—Olosh. The idea is simple: use those free PCs to run Docker images remotely. It lets you send and run Docker containers on other machines in your network, making use of otherwise idle hardware. Right now, it’s just the basics and I’m testing with my local PCs.
Target Audience:
This is just a fun experiment and a toy project for now—not meant for production. It’s for anyone curious about distributed computing, or who wants to tinker with using spare machines for lightweight jobs.
Comparison:
There are bigger, more robust solutions out there (like Kubernetes, Nomad, etc.), but Olosh is intentionally minimal and easy to set up. It’s just for simple use cases and learning, not for managing clusters at scale.
This is just a fun experiment to see what’s possible with all that unused hardware. Feel free to suggest and play with it.
https://github.com/Ananto30/olosh
/r/Python
https://redd.it/1m8tdi1
Saw a pattern at large companies: most laptops and desktops are just sitting there, barely using their processing power. Devs aren’t always running heavy stuff, and a lot of machines are just idle for hours.
What My Project Does:
So, I started this project—Olosh. The idea is simple: use those free PCs to run Docker images remotely. It lets you send and run Docker containers on other machines in your network, making use of otherwise idle hardware. Right now, it’s just the basics and I’m testing with my local PCs.
Target Audience:
This is just a fun experiment and a toy project for now—not meant for production. It’s for anyone curious about distributed computing, or who wants to tinker with using spare machines for lightweight jobs.
Comparison:
There are bigger, more robust solutions out there (like Kubernetes, Nomad, etc.), but Olosh is intentionally minimal and easy to set up. It’s just for simple use cases and learning, not for managing clusters at scale.
This is just a fun experiment to see what’s possible with all that unused hardware. Feel free to suggest and play with it.
https://github.com/Ananto30/olosh
/r/Python
https://redd.it/1m8tdi1
GitHub
GitHub - Ananto30/olosh
Contribute to Ananto30/olosh development by creating an account on GitHub.
Beginner question - About adding seed data and efficient testing
Building a tool and trying to test using some seed data (imagine it to be a marketplace type platform - with customers and vendors --> each vendor can have multiple customers and vice-versa). What's the most efficient way to test in these cases / best practices?
As of now using a simple script to seed the data, however while testing using querying I use py shell interactive console and it is hard to really visualize the data and test bug fixes in the models, etc. Any suggested best practices? Sorry if my question isn't super clear.
/r/django
https://redd.it/1m8wf3x
Building a tool and trying to test using some seed data (imagine it to be a marketplace type platform - with customers and vendors --> each vendor can have multiple customers and vice-versa). What's the most efficient way to test in these cases / best practices?
As of now using a simple script to seed the data, however while testing using querying I use py shell interactive console and it is hard to really visualize the data and test bug fixes in the models, etc. Any suggested best practices? Sorry if my question isn't super clear.
/r/django
https://redd.it/1m8wf3x
Reddit
From the django community on Reddit
Explore this post and more from the django community
Nullable but not null - Efe Öge
https://efe.me/posts/nullable-but-not-null/
/r/django
https://redd.it/1m922hk
https://efe.me/posts/nullable-but-not-null/
/r/django
https://redd.it/1m922hk
efe.me
Nullable but not null - Efe Öge
Tech Tales from a Software Craftsman
Does this drive you crazy?
Is it just me, or is it just the most annoying thing in the world how, when using the `logging` module, Flask uses a single log message, spanning over multiple lines for this startup message? It gets worse when you have a log format that aligns everything, but this message screws what up.
2025-07-24 10:53:56 INFO: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:8000
* Running on http://192.168.0.160:8000
2025-07-24 10:53:56 INFO: Press CTRL+C to quit
I did write a quick workaround with a custom formatter, but this feels like a really bad way of doing this log message on Flask's end... is there any benefit?
class MultiLineFormatter(logging.Formatter):
def format(self, record):
message = super().format(record)
if "\n"
/r/flask
https://redd.it/1m86yjz
Is it just me, or is it just the most annoying thing in the world how, when using the `logging` module, Flask uses a single log message, spanning over multiple lines for this startup message? It gets worse when you have a log format that aligns everything, but this message screws what up.
2025-07-24 10:53:56 INFO: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:8000
* Running on http://192.168.0.160:8000
2025-07-24 10:53:56 INFO: Press CTRL+C to quit
I did write a quick workaround with a custom formatter, but this feels like a really bad way of doing this log message on Flask's end... is there any benefit?
class MultiLineFormatter(logging.Formatter):
def format(self, record):
message = super().format(record)
if "\n"
/r/flask
https://redd.it/1m86yjz
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Beginner
hi all,
I am software developer with 3yoe in python.
I wanted to switch in Django backend.
I want be job ready ASAP with django .
Please guide me how can i start
Once i started django from youtube it all includes template and all i got confused why i am writing frontend here.
Then my friend suggest start Drf as you’ll needing that only for backend part.
Now i have started DRF from chatgpt itself
Creating my First app blog with all the functionalities.
Kindly give real world insights
How can i land job with django
What should i learn exactly
What will be expected from me as a django backend developer.
/r/djangolearning
https://redd.it/1m7c729
hi all,
I am software developer with 3yoe in python.
I wanted to switch in Django backend.
I want be job ready ASAP with django .
Please guide me how can i start
Once i started django from youtube it all includes template and all i got confused why i am writing frontend here.
Then my friend suggest start Drf as you’ll needing that only for backend part.
Now i have started DRF from chatgpt itself
Creating my First app blog with all the functionalities.
Kindly give real world insights
How can i land job with django
What should i learn exactly
What will be expected from me as a django backend developer.
/r/djangolearning
https://redd.it/1m7c729
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Authorization header
Im trying to send the username and password using http with Postman to an api endpoint. Entered the data in the auth tab but the username and password show up as None when printed using logging. I then printed the header using logging and it missing any auth information. I next tried curl, and still nothing. Whats going on?
/r/djangolearning
https://redd.it/1m79g5n
Im trying to send the username and password using http with Postman to an api endpoint. Entered the data in the auth tab but the username and password show up as None when printed using logging. I then printed the header using logging and it missing any auth information. I next tried curl, and still nothing. Whats going on?
/r/djangolearning
https://redd.it/1m79g5n
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community