A minimal Python library to validate environment variables at startup. Zero dependencies.
Project description
envgate
A minimal Python library to validate environment variables at startup. Zero dependencies.
Why?
Instead of your app crashing at runtime because DATABASE_URL is missing,
envgate validates everything at startup and tells you exactly what's wrong — all at once.
Installation
pip install envgate
Quick Start
from envgate import envgate
envgate({
"DATABASE_URL": {"required": True},
"REDIS_URL": {"required": True},
"LOG_LEVEL": {"default": "INFO"},
"PORT": {"type": int, "default": 8000},
"DEBUG": {"type": bool, "default": False},
})
If DATABASE_URL and REDIS_URL are missing, you get:
envgate: 2 environment variable errors:
- DATABASE_URL is required
- REDIS_URL is required
License
MIT
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
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 envgate-0.1.0.tar.gz.
File metadata
- Download URL: envgate-0.1.0.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
133daf3c865f69fb7ff25e270863487370f5d4a1181e1f2bfbda536de1026093
|
|
| MD5 |
20336f106eb217442ee3e2c448a2f056
|
|
| BLAKE2b-256 |
d3618431c545b35a51b20f29ad7f95ec90630f788c8a142083c8890aac078f79
|
File details
Details for the file envgate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: envgate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b12e903a4dde9537f9c5ab52937a5939d9795764983d1d0abb67ee5ad415a7f
|
|
| MD5 |
c1c59def2858b1cc418db1cafa7fe410
|
|
| BLAKE2b-256 |
82194d8a14a982f5f4ed31023360234705c32f843d13ad416229e6c316ee1301
|