dragon-env
Small, clean utility to load, validate, and type-cast environment variables (with automatic .env loading).
Installation
pip install dragon-env
Basic usage
from dragon_env import env, EnvError
PORT = env("PORT", cast=int)
DEBUG = env("DEBUG", default=False, cast=bool, required=False)
try:
DATABASE_URL = env("DATABASE_URL")
except EnvError as e:
raise SystemExit(str(e))
Example .env
PORT=8000
DEBUG=true
DATABASE_URL=postgresql://user:pass@localhost:5432/app
Metadata
Release files for dragon-env 0.1.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 | Provenance | |
|---|---|---|---|---|
| dragon_env-0.1.0.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dragon_env-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / dragon_env-0.1.0.tar.gz
| Download URL | dragon_env-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc4d3e378d92417b8f24d83347b4c5c6c78d95bbfdbacee59bf2a22ed09c90ea
|
|
BLAKE2b-256 checksum How to use checksums |
69e950637e5c644719884dda594ee2ed7bca02f80f016ef39e6ec4a6291f014a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / dragon_env-0.1.0-py3-none-any.whl
| Download URL | dragon_env-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b815e9c86cbeb4f31557577b513c0606e3236166691d1ed54406353dd2ad1d5
|
|
BLAKE2b-256 checksum How to use checksums |
4a685b0177405d9e8326f79e38c8288363712b73f7dd6015f74c64e0330463c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for dragon-env 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.