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.4.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uvicorn_worker-0.4.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uvicorn_worker-0.4.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uvicorn_worker-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8ee5306070d8f38dce124adce488c3c0b50f20cf0c0222b12c66188da7214493
MD5 89ef51c342b59e1c852fe5f96c44965d
BLAKE2b-256 80599101b9c0680fd80e9d26c07deb822a5d18a324339fcf9cd017885ee808ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvicorn_worker-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: uvicorn_worker-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uvicorn_worker-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2ed952cef976f5e9e429d7269640bbcafbd36c80aa80f1003c8c77a6797abde
MD5 93b36c77a4bb094a2a41bdb40500fd33
BLAKE2b-256 902509cd7a90c8bb7fb693be0d6704fccd5f9778d5513214b7a01cc4a94ff314

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvicorn_worker-0.4.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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page