envgap v0.1.1
First public release of envgap: a Python CLI that finds gaps between your app's expected environment variables, .env, .env.example, shell environment, and Python code.
Highlights
- Parse
.envand.env.example - Detect missing, empty, duplicate, placeholder, and undocumented keys
- Detect likely typo pairs like
DB_URLvsDATABASE_URL - Scan Python code for
os.environ[...],os.getenv(...), andos.environ.get(...) - Classify required vs optional env vars
- Show file and line number for code usage
- Explain when a missing
.envkey exists in the shell, which can hide CI/Docker failures - Provide terminal and JSON output
- Support CI-friendly exits with
--strict/--ci - Support deterministic checks with
--no-shell
Install
pip install envgapTry It
envgap check
envgap check examples/basic
envgap check --json
envgap check --ci