A CLI tool to check, validate, and manage .env files
Project description
env-check-utils
env-check-utils is a Python package that helps you inspect and manage your environment variables and .env files with ease.
It provides commands to validate .env files against a schema, auto-generate schemas, find unused variables, and scan code directories for environment variable usage.
Installation
Install the package from PyPI
pip install env-check-utils
Usage
Once installed, you can run it from the command line using:
env-check [OPTIONS]
Features
Here are all the available options and their descriptions:
1️. Validate .env file against a schema
env-check --schema path/to/schema.json
Validates your .env file against a provided JSON schema.
Ensures that required environment variables exist and have the correct type/format.
2️. Auto-generate a schema.json from your .env file
env-check --generate-schema
Scans your .env file and generates a schema.json automatically based on the variables found.
Useful when starting a new project or documenting existing variables.
3️. Find unused environment variables
env-check --check-unused
Checks for environment variables present in your .env file but not used anywhere in your project.
Helps keep your environment files clean and free from unnecessary variables.
4️. Scan a specific code directory for environment variable usage
env-check --path path/to/code
Scans the given directory for usage of environment variables.
Useful for identifying where variables are referenced in your codebase.
Examples
Example 1: Validate .env with a schema
env-check --schema config/schema.json
Example 2: Auto-generate schema from .env
env-check --generate-schema
Example 3: Find unused variables
env-check --check-unused
Example 4: Scan a project folder
env-check --path ./src
Documentation
You can find the full documentation online at:
https://env-check-utils.readthedocs.io/en/latest/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file env_check_utils-0.1.4.tar.gz.
File metadata
- Download URL: env_check_utils-0.1.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
892959d76c85829ee442972ed7d5feb708796bd6e496dc68f3fadf4de4fe5ab9
|
|
| MD5 |
f9e30afd361f1a00fc94f287f0b58c26
|
|
| BLAKE2b-256 |
85965a1d2a71f065d545af49ca845b4963c9d61bfd6a57632281567e0f75e9e8
|
File details
Details for the file env_check_utils-0.1.4-py3-none-any.whl.
File metadata
- Download URL: env_check_utils-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
433a22d9bd08053d43d2c757f2072e1163c05a4e6d8f40e2c3cf083842ccaa1f
|
|
| MD5 |
d1286283cd5fb3ad3ca1c7a54add55c6
|
|
| BLAKE2b-256 |
dec897d56a56a12a0af9cb92dc6f65beb0032c3fa72b480dccf864e3e91903f9
|