Open Source / Python Automation / Daily Build

Env Guard

View source ↗Scroll to explore ↓
Env Guard project cover
/ Overview

A dependency-free Python CLI that checks environment-variable names against a template without displaying or retaining their values.

NameEnv Guard

ClientPersonal open-source project

IndustriesDeveloper and operations tooling

Date2026

/ Challenge

A missing or stale environment key can break an application after startup, while ordinary debugging risks exposing secret values in terminal output or logs.

/ Provided services

Clear thinking.
Practical delivery.

01

Privacy-first scope

Designed the report around variable names and line numbers so sensitive values never need to appear in diagnostic output.

02

Configuration preflight

Added deterministic checks for missing, unexpected, duplicate and malformed entries before an application starts.

03

Local automation

Provided readable and JSON output plus distinct success, validation-failure and file-error exit codes.

Env Guard feature visual
/ Solution

I built a standard-library Python CLI that parses names only, immediately discards values, and compares an environment file with its template for missing, unexpected, duplicate and malformed entries.

/ Impact

Key-only configuration checks

Missing and unexpected key detection

Duplicate and malformed-line reporting

Nine passing standard-library tests

/ Tech stack

Python

pathlib, regular expressions, dataclasses and sets provide dependency-free parsing and comparison.

CLI & JSON

argparse supports terminal use and machine-readable checks while keeping values out of every report.

Unittest

Nine tests cover parsing, value minimization, duplicates, malformed lines, comparisons, output safety and CLI exit behavior.

Next project

Shipment SaaS System

View case study ↗