gunicorn-env-cfg
Configure gunicorn from GUNICORN_* environment variables.
Usage
Load the module as your gunicorn config:
gunicorn -c python:gunicorn_env_cfg app:app
or
GUNICORN_CMD_ARGS="-c python:gunicorn_env_cfg" gunicorn
Each GUNICORN_<NAME> environment variable sets the config option <name>
(lowercased). For example:
export GUNICORN_WORKERS=4
export GUNICORN_BIND=0.0.0.0:8000
export GUNICORN_WSGI_APP=app:app
export GUNICORN_CMD_ARGS="-c python:gunicorn_env_cfg"
gunicorn
See the gunicorn settings for the full list of available options.
Behaviour
GUNICORN_CMD_ARGSis left untouched for gunicorn's own handling.- Variables without the
GUNICORN_prefix are ignored. - An unknown option raises a
ValueErrorat startup, so typos fail fast rather than being silently ignored.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gunicorn_env_cfg-1.0.0.tar.gz.
File metadata
- Download URL: gunicorn_env_cfg-1.0.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fcedc1593649c1c0d3655427b572b375864fd4f2ef86fffae787624e734756b
|
|
| MD5 |
79f18610196287dc4c8871d05e7cf075
|
|
| BLAKE2b-256 |
0fedc70e92f02ee9ef12b332f742458d3c5ec00fb825d521fdfe27b529ee71b6
|
File details
Details for the file gunicorn_env_cfg-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gunicorn_env_cfg-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46416ef31fbad160743e1ec7db4d63dc12bb9e91b0acbe175685de2053f0409a
|
|
| MD5 |
a762a51bcf7231dda2d96d8c0f383d64
|
|
| BLAKE2b-256 |
a31da986f4f3ba813d3a0b79db514704742e605d6a85142b285e8bdaba044e3f
|