env-gen-cli
A zero-dependency command-line utility to safely generate .env.example templates from your secret local .env configuration files.
Features
- Zero Dependencies: Built entirely with native Python core modules.
- Preserves Formatting: Keeps comments, spacing, and structural layout intact.
- Inline Comment Protection: Safely processes inline annotations without affecting keys.
Installation
Clone the repository and perform an editable installation:
git clone https://github.com/fregenev/Environment-Template-Maker.git
cd env-gen-cli
pip install -e .
Usage
Run the global command inside your project workspace:
# Basic run targets local .env file
env-gen
# Force overwrite existing templates without safety prompts
env-gen --force
# Use a custom source file name and specify custom output targets
env-gen --source .env.prod --output .env.template
Running Tests
Execute the built-in diagnostic test suite locally:
python -m unittest discover -s tests
Environment-Template-Maker
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_gen_cli_fregene-1.0.0.tar.gz.
File metadata
- Download URL: env_gen_cli_fregene-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0bc8e4f33ac2f6b99be9e7164e586daf6b9a46597cdbb7f877d164fa8675b5c
|
|
| MD5 |
0ac9fb8e08dad2a1e9d71d55512ace3e
|
|
| BLAKE2b-256 |
ca018e8a80ed424f57abeb6c4d79ce8d9f5b5505db512498d095c053b40000b9
|
File details
Details for the file env_gen_cli_fregene-1.0.0-py3-none-any.whl.
File metadata
- Download URL: env_gen_cli_fregene-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deb2a54028dd1ec44436dcdf40fb7c3fc35f7071ca71c99db4cab6e2ddd7dd26
|
|
| MD5 |
45bf4b3a9c81e53c79930ef7c0d341cc
|
|
| BLAKE2b-256 |
ec27cc49386f4a0558b9add330bdf3a3536bc16bc789b343c78a7e5b3af37874
|