fastapi
Tornado
Our great sponsors
fastapi | Tornado | |
---|---|---|
465 | 13 | |
70,779 | 21,504 | |
- | 0.2% | |
9.8 | 7.8 | |
4 days ago | 12 days ago | |
Python | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fastapi
-
FastAPI Got Me an OpenAPI Spec Really... Fast
That’s when I found FastAPI.
-
How to Deploy a Fast API Application to a Kubernetes Cluster using Podman and Minikube
FastAPI & Uvicorn
-
Analysing FastAPI Middleware Performance
Discussion at FastAPI GitHub: https://github.com/tiangolo/fastapi/issues/2696
-
LangChain, Python, and Heroku
An API application framework (such as FastAPI)
-
Litestar – powerful, flexible, and highly performant Python ASGI framework
It’s been my experience that async Python frameworks tend to turn IO bound problems into CPU bound problems with a high enough request rate, because due to their nature they act as unbounded queues.
This ends up made worse if you’re using sync routes.
If you’re constrained on a resource such as a database connection pool, your framework will continue to pull http requests off the wire that a sane client will cancel and retry due to timeouts because it takes too long to get a connection out of the pool. Since there isn’t a straightforward way to cancel the execution of a route handler in every Python http framework I’ve seen exhibit this problem, the problem quickly snowballs.
This is an issue with fastapi, too- https://github.com/tiangolo/fastapi/issues/5759
-
AI-Powered Image Search with CLIP, pgvector, and Fast API
Fast API.
- Ask HN: What is your go-to stack for the web?
-
Fun with Avatars: Crafting the core engine | Part. 1
We will create our API using FastAPI, a modern high-performance web framework for building fast APIs with Python. It is designed to be easy to use, efficient, and highly scalable. Some key features of FastAPI include:
-
Building Fast APIs with FastAPI: A Comprehensive Guide
FastAPI is a modern, fast, web framework for building APIs with Python 3.7+ based on standard Python type hints. It is designed to be easy to use, fast to run, and secure. In this blog post, we’ll explore the key features of FastAPI and walk through the process of creating a simple API using this powerful framework.
-
Effortless API Documentation: Accelerating Development with FastAPI, Swagger, and ReDoc
FastAPI is a modern, fast web framework for building APIs with Python 3.7+ that automatically generates OpenAPI and JSON Schema documentation. While FastAPI simplifies API development, manually creating and updating API documentation can still be a time-consuming task. In this blog post, we’ll explore how to leverage FastAPI’s automatic documentation generation capabilities, specifically focusing on Swagger and ReDoc, and how to streamline the process of documenting your APIs.
Tornado
-
Epoll: The API that powers the modern internet (2022)
I am not expert in these but I thought Tornado's ioloop was readable enough for me to learn more event loops. Mostly, it was being implemented in pure Python.
https://github.com/tornadoweb/tornado/blob/branch4.5/tornado...
(Had to be in 4.5 because the newer versions 5.x and 6.x, it's switched to Python's stdlib asyncio)
-
Tornado web server/framework
I am a bit confused, Tornado is web server like a apache http server, or a framework like django, or both?
- Ask HN: What's the most elegant piece of code you've seen?
-
In your experience, what is the best backend framework for working with websockets?
For Python, I use Tornado.
-
tornado for a complete beginner
tornado? this https://github.com/tornadoweb/tornado ?
-
How to work with an RPC WebSocket Server
I'm writing a Node app that talks to a server that uses Tornado, a Python networking framework. The server uses WebSocket and structured JSON to expose RPCs, like sign_on called with the following message:
-
Ask HN: Web frameworks – which less popular framework are you using and why?
I've been using Python's Tornado (http://www.tornadoweb.org/) for years now.
Now on version 6, it's fast, well maintained, mature, and has good docs with readable code.
@bdarnell has done an excellent job maintaining it.
Here's one example:
Tornado supported async style co-routines before asyncio was a thing. Now it uses asyncio under the hood by default -- and it did so with an exceptionally smooth transition.
-
The Best Python Web Frameworks🤩
Tornado is another micro framework aimed at a specific use case: asynchronous networking applications. Tornado is well-suited for creating services that open a great many network connections and keep them alive that is, anything involving WebSockets or long polling. Moreover, It requires Python 3.5 or higher and drops Python 2 support entirely.
-
TIL : Tornado | Fix "tornado.util.TimeoutError: Operation timed out after 5 seconds"
How to fix tornado.util.TimeoutError: Operation timed out after 5 seconds on tornado test debug?
-
Project brainstorming for real-time data display
Here's an official demo chat app using websocket: https://github.com/tornadoweb/tornado/tree/master/demos/websocket, though you should read the docs on websocket for understanding the code.
What are some alternatives?
AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python
Flask - The Python micro framework for building web applications.
HS-Sanic - Async Python 3.6+ web server/framework | Build fast. Run fast. [Moved to: https://github.com/sanic-org/sanic]
django-ninja - 💨 Fast, Async-ready, Openapi, type hints based framework for building APIs
Django - The Web framework for perfectionists with deadlines.
CherryPy - CherryPy is a pythonic, object-oriented HTTP framework. https://cherrypy.dev
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
sanic - Accelerate your web app development | Build fast. Run fast.
Bottle - bottle.py is a fast and simple micro-framework for python web-applications.