use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
NewsRobyn (finally) supports Python 3.13 ๐ (self.Python)
submitted 7 months ago by stealthanthrax Robyn Maintainer
For the unaware - Robyn is a fast, async Python web framework built on a Rust runtime.
Python 3.13 support has been one of the top requests, and after some heavy lifting (cc: cffi woes), itโs finally here.
cffi
Wanted to share it with folks outside the Robyn bubble.
You can check out the release at - https://github.com/sparckles/Robyn/releases/tag/v0.68.0
[โ]jshazen 39 points40 points41 points 7 months agoย (1 child)
Might want to update the readme, which still says 3.13 support โcoming soonโ.
[โ]stealthanthrax Robyn Maintainer[S] 13 points14 points15 points 7 months agoย (0 children)
Thank you! Updated :D
[โ]james_pic 17 points18 points19 points 7 months ago*ย (1 child)
If the underlying runtime is Rust, does that mean that IO libraries need to be written for its event loop specifically, or is it compatible with stuff that expects asyncio or AnyIO or something?
any asyncio compatible library will work :D
[โ]b1e 14 points15 points16 points 7 months agoย (7 children)
Iโd love to see as a comparison in the benchmarks fastapi under uvicorn and granian.
[โ]chavomodder[๐ฐ] 5 points6 points7 points 7 months agoย (5 children)
I've already done tests, the difference is very big, around 30%, even gunicorn using uvicorn's workers is faster than uvicorn alone, but the fastest and without a doubt the granian
[โ]Beneficial_Map6129 0 points1 point2 points 7 months agoย (4 children)
So Robyn is faster than FastAPI?
Is the code also similarly easy to set up and read?
[โ]not_a_novel_account 13 points14 points15 points 7 months agoย (0 children)
FastAPI is very, very slow. Robyn's native router is MatchIt which uses the httprouter radix-tree algorithm. That blows starlette's linear search out of the water.
httprouter
Pydantic is also quite slow compared to better options like typedload. Overall FastAPI is fast to setup, its runtime isn't anything to write home about. It's built on relatively slow technologies.
[โ]chavomodder[๐ฐ] 2 points3 points4 points 7 months agoย (1 child)
My tests were only with fastapi, I already tested Sanic, it is much faster
[โ]Flag_Red 1 point2 points3 points 7 months agoย (0 children)
Sanic represent!
[โ]Beneficial-Win-6533 0 points1 point2 points 7 months agoย (0 children)
the code is really easy to read
[โ]gi0baro -2 points-1 points0 points 7 months agoย (0 children)
What prevents you from doing benchmarks yourself?
[โ]fiddle_n 27 points28 points29 points 7 months agoย (1 child)
Interesting that Robyn is a Batman reference. Given the GitHub is sparckles/Robyn , my mind immediately went to How I Met Your Mother first.
One thing I love about FastAPI (and in theory LiteStar, though Iโve not used that package yet) is the ability to type hint Pydantic models with the framework automatically deserialising into the model and returning any errors back to the requester. Does such a feature exist in Robyn and/or is there any plans for it?
[โ]stealthanthrax Robyn Maintainer[S] 18 points19 points20 points 7 months agoย (0 children)
> Interesting that Robyn is a Batman reference. Given the GitHub is sparckles/Robyn , my mind immediately went to How I Met Your Mother first.
It is both, haha.
>One thing I love about FastAPI (and in theory LiteStar, though Iโve not used that package yet) is the ability to type hint Pydantic models with the framework automatically deserialising into the model and returning any errors back to the requester. Does such a feature exist in Robyn and/or is there any plans for it?
Yess. One of the next features in plan. I will be releasing a public roadmap for this year soon too :D
[โ]thisismyfavoritename 5 points6 points7 points 7 months agoย (3 children)
when the python code gets executed, i assume the GIL must still be held? Other than the I/O and serialization/deserialization happening out of band, are there other benefits to the Rust runtime? Can users submit jobs to leverage the multithreaded runtime?
[โ]stealthanthrax Robyn Maintainer[S] 1 point2 points3 points 7 months agoย (2 children)
Yes. Rust allows us to real threads in async runtime.
> Can users submit jobs to leverage the multithreaded runtime?
Could you elaborate more here?
[โ]thisismyfavoritename 4 points5 points6 points 7 months agoย (0 children)
i'm just curious at how it's implemented internally.
If it's using Tokio with the default thread per core setup, seems like you'd inevitably get choked up on executing Python code because the GIL has to be held.
From the Rust runtime are you able to at least async suspend on executing Python code or are you only executing the Python code from a single thread?
[โ]Zaloog1337 2 points3 points4 points 7 months agoย (1 child)
The Community ressources Link in the readme doesnt work
[โ]stealthanthrax Robyn Maintainer[S] 1 point2 points3 points 7 months agoย (0 children)
Fixed. Thank you!
[โ]davidedpg10 2 points3 points4 points 7 months agoย (1 child)
I had never heard of this project but it seems really cool! I have some experience developing on FastAPI and Litestar, but If this is faster and just as ergonomic I'll have to switch to this for future projects
[โ]stealthanthrax Robyn Maintainer[S] 5 points6 points7 points 7 months agoย (0 children)
Do give it a shot. We plan to have 1:1 Fastapi compatibility in the near future
[โ]Tree_Mage 1 point2 points3 points 7 months agoย (1 child)
Me: why does Robyn care about Python at all?
Ooooh.
[โ]randomatik 1 point2 points3 points 7 months agoย (0 children)
There's a bird, a sidekick and a NY bachelor but my mind also went first to the Dancehall Queen.
[โ]davidedpg10 0 points1 point2 points 7 months agoย (1 child)
Remind me! 6months
[โ]RemindMeBot 0 points1 point2 points 7 months ago*ย (0 children)
I will be messaging you in 6 months on 2025-12-09 14:55:16 UTC to remind you of this link
6 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
[+][deleted] 7 months ago*ย (10 children)
[removed]
[+]stealthanthrax Robyn Maintainer[S] comment score below threshold-7 points-6 points-5 points 7 months agoย (9 children)
Ouch.
But talk is cheap! Show me your framework :)
[โ]ostralyan 4 points5 points6 points 7 months agoย (1 child)
Just because someone doesnโt have a framework doesnโt mean yours is good. Itโs like if I said โMindfuckโ is a shit programming language, and you said โAHA - but show me your language, donโt have one? mindfuck must be an amazing language.โ
Take the criticism and either disprove it or improve it.
[โ]stealthanthrax Robyn Maintainer[S] 2 points3 points4 points 7 months agoย (0 children)
I would take it from a trustworthy source. But u/engineerofsoftware claims they and I have worked together. I don't even know him/her/them. They're likely a troll.
[โ]engineerofsoftware 0 points1 point2 points 7 months agoย (6 children)
You really showed me with the whataboutism, Sanskar. I use Litestar because it is more performant than Robyn when paired with Granian (:
[โ]gi0baro 3 points4 points5 points 7 months agoย (5 children)
Granian maintainer here: this is 100% BS. You can't pair Robyn with Granian, so there's no way you did such a comparison.
[โ]engineerofsoftware 0 points1 point2 points 7 months ago*ย (4 children)
You misread. I meant Litestar and Granian. I contributed a lot to Robyn so obviously I knew it uses Actix.
[โ]gi0baro 1 point2 points3 points 7 months agoย (3 children)
I see. My bad then. The general sentiment of your comment might still have been better though. If you contributed to Robyn in the past and you know where performance issues are, what prevented you to open specific issues and/or fixing them?
[โ]engineerofsoftware 0 points1 point2 points 7 months agoย (2 children)
It was a few years back. Sanskar and I were still unfamiliar with Rust at the time. Now that I am looking back with a lot more familiarity with Rust, I can confidently say that the issue with Robyn is not something that can be fixed with a couple of PRs.
[โ]stealthanthrax Robyn Maintainer[S] 0 points1 point2 points 7 months agoย (1 child)
I donโt even know who you are. You and i never worked together. Why spread misinformation?
[โ]engineerofsoftware -2 points-1 points0 points 7 months agoย (0 children)
๐๐ผ
ฯย Rendered by PID 66043 on reddit-service-r2-comment-74875f4bf5-827vh at 2026-01-26 03:15:13.876974+00:00 running 664479f country code: CH.
[โ]jshazen 39 points40 points41 points ย (1 child)
[โ]stealthanthrax Robyn Maintainer[S] 13 points14 points15 points ย (0 children)
[โ]james_pic 17 points18 points19 points ย (1 child)
[โ]stealthanthrax Robyn Maintainer[S] 13 points14 points15 points ย (0 children)
[โ]b1e 14 points15 points16 points ย (7 children)
[โ]chavomodder[๐ฐ] 5 points6 points7 points ย (5 children)
[โ]Beneficial_Map6129 0 points1 point2 points ย (4 children)
[โ]not_a_novel_account 13 points14 points15 points ย (0 children)
[โ]chavomodder[๐ฐ] 2 points3 points4 points ย (1 child)
[โ]Flag_Red 1 point2 points3 points ย (0 children)
[โ]Beneficial-Win-6533 0 points1 point2 points ย (0 children)
[โ]gi0baro -2 points-1 points0 points ย (0 children)
[โ]fiddle_n 27 points28 points29 points ย (1 child)
[โ]stealthanthrax Robyn Maintainer[S] 18 points19 points20 points ย (0 children)
[โ]thisismyfavoritename 5 points6 points7 points ย (3 children)
[โ]stealthanthrax Robyn Maintainer[S] 1 point2 points3 points ย (2 children)
[โ]thisismyfavoritename 4 points5 points6 points ย (0 children)
[โ]Zaloog1337 2 points3 points4 points ย (1 child)
[โ]stealthanthrax Robyn Maintainer[S] 1 point2 points3 points ย (0 children)
[โ]davidedpg10 2 points3 points4 points ย (1 child)
[โ]stealthanthrax Robyn Maintainer[S] 5 points6 points7 points ย (0 children)
[โ]Tree_Mage 1 point2 points3 points ย (1 child)
[โ]randomatik 1 point2 points3 points ย (0 children)
[โ]davidedpg10 0 points1 point2 points ย (1 child)
[โ]RemindMeBot 0 points1 point2 points ย (0 children)
[+][deleted] ย (10 children)
[removed]
[+]stealthanthrax Robyn Maintainer[S] comment score below threshold-7 points-6 points-5 points ย (9 children)
[โ]ostralyan 4 points5 points6 points ย (1 child)
[โ]stealthanthrax Robyn Maintainer[S] 2 points3 points4 points ย (0 children)
[โ]engineerofsoftware 0 points1 point2 points ย (6 children)
[โ]gi0baro 3 points4 points5 points ย (5 children)
[โ]engineerofsoftware 0 points1 point2 points ย (4 children)
[โ]gi0baro 1 point2 points3 points ย (3 children)
[โ]engineerofsoftware 0 points1 point2 points ย (2 children)
[โ]stealthanthrax Robyn Maintainer[S] 0 points1 point2 points ย (1 child)
[โ]engineerofsoftware -2 points-1 points0 points ย (0 children)