Back to browse
GitHub Repository

🕵️ Detective for env vars in Python code. Finds os.getenv/os.environ usages via AST and checks them against your .env file.

4 starsPython

Envsleuth – catch missing env vars before they reach production

by k38f·Apr 23, 2026·1 point·0 comments

AI Analysis

●●SolidSolve My ProblemShip It

AST parser catches missing env vars before you deploy to production.

Strengths
  • AST parsing catches aliased imports like `from os import getenv`.
  • `generate` command auto-creates `.env.example` files directly from code usage.
  • CI mode exits with error code for seamless pipeline integration.
Weaknesses
  • Python-only, doesn't handle dynamic variable names (acknowledged but limiting).
  • No IDE integration mentioned, remains CLI only for now.
Target Audience

Python developers, DevOps engineers

Similar To

python-dotenv · pre-commit · detect-secrets

Similar Projects

Developer Tools●●Solid

Env-rx – Catch missing .env variables before they break your CI

Interactive autofix plus a --ci flag is the practical combo here: run locally to prompt-and-append missing keys, or fail your CI when examples diverge. It’s not reinventing the wheel, but the single-file, zero-config approach and explicit CI mode make it a useful small tool to stop one of those 'works on my machine' headaches—just watch out for secrets and how you auto-append placeholder values.

Solve My ProblemShip ItNiche Gem
xserhio
343mo ago