envwarden
Compare .env against .env.example and find missing or undocumented variables — great for CI and onboarding.
Install
pip install envwarden
Usage
# Auto-detect .env and .env.example in current directory
envwarden
# Scan a specific project directory
envwarden /path/to/project
# Ignore undocumented keys (don't flag .env-only vars)
envwarden --allow-extra
# Don't warn about empty values
envwarden --no-warn-empty
# CI-friendly: only print issues, exit 0/1
envwarden --quiet
Example output
env: .env
example: .env.example
✗ Missing (2) — required by .env.example but not in .env:
DATABASE_URL
REDIS_URL
⚠ Undocumented (1) — in .env but not in .env.example:
MY_LOCAL_DEBUG_FLAG
⚠ Empty (1) — keys with no value set:
SECRET_KEY
Exits with code 1 when missing or extra keys are found, 0 when all clear.
Supported example file names
.env.example.env.sample.env.template
CI integration
- name: Verify .env matches .env.example
run: envwarden --quiet
License
MIT
Metadata
Release files for envwarden 0.2.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 | |
|---|---|---|---|
| envwarden-0.2.0.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| envwarden-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / envwarden-0.2.0.tar.gz
| Download URL | envwarden-0.2.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fda79628d838d755492de6db8808c9e8a48814491d1e27241ffc41d553c5dfbf
|
|
BLAKE2b-256 checksum How to use checksums |
676d322a983a7d0f71f8b080286ac9b3ed9360d498d9462bcaffda971753d6b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / envwarden-0.2.0-py3-none-any.whl
| Download URL | envwarden-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d38feab2f72e8331447d82c75f44e1bcf7e886a622f88048fd2f15ea681490c0
|
|
BLAKE2b-256 checksum How to use checksums |
39e25e803f9d8745d702a4217fe7855febcbe8f599e7b9733b4a1f98f7ddc65a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|