Metadata-Version: 2.5
Name: envparity
Version: 0.1.0
Summary: Check environment variable parity between Python AST and .env.example
Project-URL: Repository, https://github.com/shettigarpratham6-web/envparity.git
Author-email: Pratham Shettigar <shettigarpratham6@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: ast,cli,dotenv,env,linter
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# envparity

Checks if the environment variables used in your Python code (`os.getenv`, `os.environ.get`, `os.environ[...]`) match what is listed in your `.env.example` file.

Built with Python's standard `ast` module. No external dependencies.

## Install

```bash
pip install envparity
```

## Usage

Run it in your project root:

```bash
envparity
```

Example output when keys are out of sync:

```text
Missing in .env.example:
  - DATABASE_URL (required, src/db.py:12)
  - REDIS_TIMEOUT (optional, src/cache.py:8)
Unused in .env.example: OLD_API_URL
```

## Options

Scan a specific folder or custom env file:

```bash
envparity src/ -e .env.template
```

Automatically append missing variables to `.env.example`:

```bash
envparity --sync
```

## License

[MIT](LICENSE)
