Introducing
The Slant team built an AI & it’s awesome
Find the best product instantly
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now
4.7 star rating
0
Development
What are the best Python asynchronous web frameworks?
7
Options
Considered
121
User
Recs.
May 9, 2023
Last
Updated
Related Questions
Activity
Have feedback or ideas?
Join our community
on Discord
Ad
7
Options
Considered
Best Python asynchronous web frameworks
Price
Platforms
License
82
FastAPI
0
Cross-platform
MIT
--
Aiohttp
-
-
-
--
Sanic Framework
-
-
-
--
Starlette
0
-
-
--
Quart
-
-
-
See Full List
82
FastAPI
My Rec
ommendation
for
FastAPI
My Recommendation for
FastAPI
All
29
Experiences
2
Pros
25
Cons
1
Specs
Top
Pro
•••
Async IO / optional
It's based on Async IO, which gives it high concurrency. But you can use non-async libraries and it runs them appropriately.
See More
Top
Con
•••
Smaller community
Since FastAPI is relatively new, its community is smaller than Django Rest Framework.
See More
PleasantDogoda's Experience
best of both worlds , (really) fast , easy and clear , type safe ,has dependency injection , well documented , graphql and websockets out of the box , automatic project docs , data validation
See More
Specs
Platforms:
Cross-platform
License:
MIT
Type:
standard and feature rich micro-framework
Initial Release:
2019
See All Specs
Top
Pro
•••
Automatic docs
It generates interactive API documentation automatically from your code.
See More
CompetentCocytus's Experience
It feels modern and robust. Great support for typing and OpenAPI. Exhaustive and didactic documentation plus the creator is very active and friendly.
See More
Top
Pro
•••
Data validation
Pydantic validates the data using the types you declared. Even in deeply nested JSON requests.
See More
Top
Pro
•••
Standards
It is based on standards: OpenAPI, JSON Schema and OAuth 2.0.
See More
Top
Pro
•••
Editor completion
It is based on Python type declarations, so, editors and tools can give great support. Including type checks and autocompletion everywhere.
See More
Top
Pro
•••
Dependency injection
It has a simple but powerful dependency injection system, it can be used to handle authentication, per-user rate limiting, authorization controls (e.g. with roles), etc.
See More
Top
Pro
•••
Database independent
It's independent of database or ORM, but compatible with all of them. Including relational databases and NoSQL.
See More
Top
Pro
•••
High-performance
It's based on Starlette, so, it's one of the fastest Python frameworks.
See More
Top
Pro
•••
World class documentation
It has some of the best documentation of any framework.
See More
Top
Pro
•••
Background tasks
Included support for background tasks, thanks to being based on Starlette.
See More
Top
Pro
•••
One of the fastest growing communities
See More
Top
Pro
•••
Steady growth
See More
Top
Pro
•••
API based not on HTML-base like Flask
See More
Top
Pro
•••
WebSockets
Because it's an async framework, it can handle async-native protocols like WebSockets.
See More
Top
Pro
•••
Deploys in minutes instead of hours
See More
Top
Pro
•••
Fast development
Makes it awesome for machine learning projects.
See More
Top
Pro
•••
OAuth 2.0
It has integrated support for OAuth 2.0. Including declaring required scopes per endpoint. So, you can easily integrate it with external OAuth 2.0 providers or build your own with it.
See More
Top
Pro
•••
ASGI based
See More
Top
Pro
•••
Type safe
See More
Top
Pro
•••
Easier and clearer code than in Flask with additional features
See More
Top
Pro
•••
Uber is using fastAPI for its machine learning projects
See More
Top
Pro
•••
Graphql out of the box
See More
Top
Pro
•••
Fast is really fast
It's easy to develop API based applications in Python on deadlines for Android and IOS Development.
See More
Top
Pro
•••
Supports GraphQL
Python's graphene library is included as an optional dependency meaning that GraphQL API's are supported out of the box, with no additional tweaking needed.
See More
Top
Pro
•••
Better than Tornado and Quart in every aspect
See More
Hide
See All
0
Recommend
50
1
--
Aiohttp
My Rec
ommendation
for
Aiohttp
My Recommendation for
Aiohttp
Hide
Get it
here
Recommend
29
8
--
Sanic Framework
My Rec
ommendation
for
Sanic Framework
My Recommendation for
Sanic Framework
All
1
Experiences
1
NiceUkanomitama's Experience
2 years
See More
Hide
Get it
here
Recommend
16
--
Starlette
My Rec
ommendation
for
Starlette
My Recommendation for
Starlette
All
7
Experiences
1
Pros
4
Cons
2
Top
Pro
•••
Documentation
Starlette is well-documented with examples and clear explanations
See More
Top
Con
•••
DYI user authentication
Unlike Django, there's no standard way of handling users
See More
Ken Kinder's Experience
Starlette is great for building APIs in Python, especially if you plan to build the frontend as a native app or SPA.
See More
Top
Pro
•••
Performance
Optimized with ASGI, Starlette is among the fastest options Python servers available
See More
Top
Con
•••
No admin interface
Unlike Django, there's no built-in admin interface
See More
Top
Pro
•••
Active Community
See More
Top
Pro
•••
Free and Open Source
See More
Hide
See All
0
Recommend
5
--
Quart
My Rec
ommendation
for
Quart
My Recommendation for
Quart
All
2
Experiences
1
Pros
1
Top
Pro
•••
Easy to use when we know already flask
See More
HumbleXmucane's Experience
I think Quart is an amazing option for Python asynchronous web frameworks. It is quite user friendly and it is even possible to import Flask extensions!
See More
Hide
Get it
here
Recommend
4
2
--
Tornado
My Rec
ommendation
for
Tornado
My Recommendation for
Tornado
All
1
Experiences
1
RespectableGersemi's Experience
Outdated in 2022.
See More
Hide
Get it
here
Recommend
1
--
Twisted
My Rec
ommendation
for
Twisted
My Recommendation for
Twisted
All
2
Pros
2
Top
Pro
•••
Excellent job security
No one understands how it works so once you manage it you get lifetime paycheck like a COBOL programmer.
See More
Top
Pro
•••
Too complex
See More
Hide
Get it
here
Recommend
4
1
Don't see your favorite option? Add it.
Built By the Slant team
Find the best product instantly.
4.7 star rating
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now - it's free
One sec!
Are you sure that you want to abandon your hard work?
Delete Work
Continue working
{}
undefined
url next
price drop