Automatically creates an .env.example which creates the same keys as your .env file, but without the values
Reason this release was yanked:
Does not install correctly, please use 0.0.3 instead
Project description
clean-dotenv
Automatically creates an .env.example which creates the same keys as your .env file, but without the values
Installation
pip install clean-dotenv
Console scripts
Consult clean-dotenv --help
for the full set of options.
Common options:
--root path
: Defines the root path in which to look for .env files
As a pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml
- repo: https://github.com/hija/clean-dotenv
rev: v0.0.2
hooks:
- id: clean-dotenv
What does it do?
The tool looks for .env
files in all directories and creates a new, corresponding filename .env.example
which is save to commit, since it contains all the keys from your .env
file, but without its values.
As a result, you always have an up-to-date .env.example
file. This shall help to reduce forgetting updating the .env.example
files!
Project details
Release history Release notifications | RSS feed
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
Hashes for clean_dotenv-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8f559554002ad3b277a56da4269fa4945b43e505b497216af3bd58974334d16 |
|
MD5 | bd59424d1a5c5889672fee9368054bb4 |
|
BLAKE2b-256 | 6b982becec2b26b0b6d979868ef058805ed0406750a259369538400b3ff5a534 |