Uvicorn Worker
The Uvicorn Worker is a package designed for the mature and comprehensive server and process manager, Gunicorn. This package allows you to run ASGI applications, leverages Uvicorn's high-performance capabilities, and provides Gunicorn's robust process management.
By using this package, you can dynamically adjust the number of worker processes, restart them gracefully, and execute server upgrades without any service interruption.
Getting Started
Installation
You can easily install the Uvicorn Worker package using pip:
pip install uvicorn-worker
Deployment
For production environments, it's recommended to utilize Gunicorn with the Uvicorn worker class. Below is an example of how to do this:
gunicorn example:app -w 4 -k uvicorn_worker.UvicornWorker
In the above command, -w 4 instructs Gunicorn to initiate 4 worker processes, and -k uvicorn_worker.UvicornWorker flag tells
Gunicorn to use the Uvicorn worker class.
If you're working with a PyPy compatible configuration, you should use uvicorn_worker.UvicornH11Worker.
Development
During development, you can directly run Uvicorn as follows:
uvicorn example:app --reload
The --reload flag will automatically reload the server when you make changes to your code.
For more information read the Uvicorn documentation.
Release files for uvicorn-worker 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uvicorn_worker-0.4.0.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uvicorn_worker-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 kB
Release files / uvicorn_worker-0.4.0.tar.gz
| Download URL | uvicorn_worker-0.4.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ee5306070d8f38dce124adce488c3c0b50f20cf0c0222b12c66188da7214493
|
|
BLAKE2b-256 checksum How to use checksums |
80599101b9c0680fd80e9d26c07deb822a5d18a324339fcf9cd017885ee808ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2025.
Transparency logRelease files / uvicorn_worker-0.4.0-py3-none-any.whl
| Download URL | uvicorn_worker-0.4.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2ed952cef976f5e9e429d7269640bbcafbd36c80aa80f1003c8c77a6797abde
|
|
BLAKE2b-256 checksum How to use checksums |
902509cd7a90c8bb7fb693be0d6704fccd5f9778d5513214b7a01cc4a94ff314
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2025.
Transparency log