mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
69 lines
2.9 KiB
Markdown
69 lines
2.9 KiB
Markdown
# Gunicorn
|
|
|
|
<p align="center">
|
|
<strong>Gunicorn is maintained by volunteers. If it powers your production, please consider supporting us:</strong><br>
|
|
<a href="https://github.com/sponsors/benoitc"><img src="https://img.shields.io/badge/GitHub_Sponsors-❤-ea4aaa?style=for-the-badge&logo=github" alt="GitHub Sponsors"></a>
|
|
<a href="https://opencollective.com/gunicorn"><img src="https://img.shields.io/badge/Open_Collective-Support-7FADF2?style=for-the-badge&logo=opencollective" alt="Open Collective"></a>
|
|
<a href="https://checkout.revolut.com/pay/c934e028-3a71-44eb-b99c-491342df2044"><img src="https://img.shields.io/badge/Revolut-Donate-191c20?style=for-the-badge" alt="Revolut"></a>
|
|
</p>
|
|
|
|
[](https://pypi.python.org/pypi/gunicorn)
|
|
[](https://pypi.python.org/pypi/gunicorn)
|
|
[](https://github.com/benoitc/gunicorn/actions/workflows/tox.yml)
|
|
|
|
Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork
|
|
worker model ported from Ruby's [Unicorn](https://bogomips.org/unicorn/) project. The Gunicorn server is broadly
|
|
compatible with various web frameworks, simply implemented, light on server
|
|
resource usage, and fairly speedy.
|
|
|
|
**New in v25**: Per-app worker allocation for dirty arbiters, HTTP/2 support (beta)!
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
pip install gunicorn
|
|
gunicorn myapp:app --workers 4
|
|
```
|
|
|
|
For ASGI applications (FastAPI, Starlette):
|
|
|
|
```bash
|
|
gunicorn myapp:app --worker-class asgi
|
|
```
|
|
|
|
## Features
|
|
|
|
- WSGI support for Django, Flask, Pyramid, and any WSGI framework
|
|
- **ASGI support** (beta) for FastAPI, Starlette, Quart
|
|
- **HTTP/2 support** (beta) with multiplexed streams
|
|
- **Dirty Arbiters** for heavy workloads (ML models, long-running tasks)
|
|
- uWSGI binary protocol for nginx integration
|
|
- Multiple worker types: sync, gthread, gevent, eventlet, asgi
|
|
- Graceful worker process management
|
|
- Compatible with Python 3.9+
|
|
|
|
## Documentation
|
|
|
|
Full documentation at https://gunicorn.org
|
|
|
|
- [Quickstart](https://gunicorn.org/quickstart/)
|
|
- [Configuration](https://gunicorn.org/configure/)
|
|
- [Deployment](https://gunicorn.org/deploy/)
|
|
- [Settings Reference](https://gunicorn.org/reference/settings/)
|
|
|
|
## Community
|
|
|
|
- Report bugs on [GitHub Issues](https://github.com/benoitc/gunicorn/issues)
|
|
- Chat in [#gunicorn](https://web.libera.chat/?channels=#gunicorn) on [Libera.chat](https://libera.chat/)
|
|
- See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines
|
|
|
|
## Support
|
|
|
|
Powering Python apps since 2010. Support continued development.
|
|
|
|
[](https://gunicorn.org/sponsor/)
|
|
|
|
## License
|
|
|
|
Gunicorn is released under the MIT License. See the [LICENSE](https://github.com/benoitc/gunicorn/blob/master/LICENSE) file for details.
|