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.
Metadata
Release files for gunicorn-env-cfg 1.0.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 | |
|---|---|---|---|
| gunicorn_env_cfg-1.0.0.tar.gz | 1.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gunicorn_env_cfg-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.8 kB
Release files / gunicorn_env_cfg-1.0.0.tar.gz
| Download URL | gunicorn_env_cfg-1.0.0.tar.gz |
|---|---|
| Size | 1.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fcedc1593649c1c0d3655427b572b375864fd4f2ef86fffae787624e734756b
|
|
BLAKE2b-256 checksum How to use checksums |
0fedc70e92f02ee9ef12b332f742458d3c5ec00fb825d521fdfe27b529ee71b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / gunicorn_env_cfg-1.0.0-py3-none-any.whl
| Download URL | gunicorn_env_cfg-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46416ef31fbad160743e1ec7db4d63dc12bb9e91b0acbe175685de2053f0409a
|
|
BLAKE2b-256 checksum How to use checksums |
a31da986f4f3ba813d3a0b79db514704742e605d6a85142b285e8bdaba044e3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|