python-gunicorn
hypercorn
python-gunicorn | hypercorn | |
---|---|---|
2 | 3 | |
4 | - | |
- | - | |
6.8 | - | |
17 days ago | - | |
Shell | ||
MIT License | - |
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.
python-gunicorn
-
Any decent way to add "startup code" that runs before the flask app instance starts?
If you're using docker the multi-py gunicorn image might be useful to you.
-
Gunicorn
The multi-py project has a cross platform gunicorn container that works with Intel and Arm out of the box.
https://github.com/multi-py/python-gunicorn
There's also a uvicorn one there for people who want the async features.
https://github.com/multi-py/python-uvicorn
And a container that combines both (although it's often better to just use uvicorn and add more containers to your API to scale up).
https://github.com/multi-py/python-gunicorn-uvicorn
hypercorn
- Gunicorn
-
HTTP/3: Practical Deployment Options (Part 3)
Whilst the article rightly mentions aioquic to use HTTP/3 with Python, it is only a minimal example server. Hypercorn is a compete ASGI server built on aioquic that is likely more useful practically.
-
ASGI webservers producing strange unmotivated random spikes of delay (seconds!) and generally only half as fast as their gevent or eventlet counterparts. Very strange.
This is interesting, and not something I've seen before. I'm preoccupied with a Werkzeug/Flask release at the moment then I'll take at look into this. Any more details would be welcome on https://gitlab.com/pgjones/hypercorn/-/issues/181
What are some alternatives?
python-uvicorn - Multiarchitecture Docker Containers for Python and Uvicorn
uvicorn - An ASGI web server, for Python. 🦄
gunicorn - gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.
python-gunicorn-uvicorn - Multiarchitecture Docker Containers for Python using Gunicorn and Uvicorn
daphne - Django Channels HTTP/WebSocket server
hypercorn - Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
python-celery - Multiarchitecture Docker Containers for Celery
aioquic - QUIC and HTTP/3 implementation in Python
trio - Trio – a friendly Python library for async concurrency and I/O