Skip to main content

Uvicorn worker for Gunicorn! ✨

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uvicorn_worker-0.3.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

uvicorn_worker-0.3.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file uvicorn_worker-0.3.0.tar.gz.

File metadata

  • Download URL: uvicorn_worker-0.3.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for uvicorn_worker-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6baeab7b2162ea6b9612cbe149aa670a76090ad65a267ce8e27316ed13c7de7b
MD5 1341838b8cd6fabec705e2910202dedf
BLAKE2b-256 37c0b5df8c9a31b0516a47703a669902b362ca1e569fed4f3daa1d4299b28be0

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvicorn_worker-0.3.0.tar.gz:

Publisher: publish.yml on Kludex/uvicorn-worker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uvicorn_worker-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: uvicorn_worker-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for uvicorn_worker-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef0fe8aad27b0290a9e602a256b03f5a5da3a9e5f942414ca587b645ec77dd52
MD5 097722faaf517911c6dc4929496b77d5
BLAKE2b-256 f71f4e5f8770c2cf4faa2c3ed3c19f9d4485ac9db0a6b029a7866921709bdc6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvicorn_worker-0.3.0-py3-none-any.whl:

Publisher: publish.yml on Kludex/uvicorn-worker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page