Automatically creates an .env.example which creates the same keys as your .env file, but without the values
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.3
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.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d015f9716d6b5194637354062841f447e9c99f643c2d2e775d854ec6bf62309 |
|
MD5 | c45a1a3e7ef21278adac63122bac16d5 |
|
BLAKE2b-256 | 7e551939b3e476380a68e9d4b000300e1597036c076552b81fb128d95048d814 |