Skip to content
AI NEWS JOURNAL
Hacker News Show HNAI NEWS / JOURNAL

Show HN: Envcheck – a small Python .env file checker

Article URL: https://github.com/rronkus/envcheck Comments URL: https://news.ycombinator.com/item?id=50624787 Points: 1 # Comments: 0

A small Python CLI tool that compares .env files and identifies missing or unexpected environment variables. Features Detects missing environment variables. Identifies unexpected variables. Ignores comments and blank lines. Never displays secret values. No external dependencies. Run the following command: python envcheck.py .env.example .env .env.example DATABASE_URL= API_KEY= PORT=3000 DATABASE_URL=localhost PORT=3000 Missing: API_KEY Extra: None 1 missing, 0 extra Run the automated tests: python -m unittest -v Requirements Python 3.10 or newer No third-party packages

Sources

Read original ↗
← Continue to all updates