Automatically generate .env files from .env.example
Project description
A Python app to generate dotenv (.env) files from templates.
Features
Quickstart
Install Python DotEnver:
$ pip install dotenver
Create a .env.example following this example:
# Full line comments will be kept # Simple usage NAME= ## dotenver:first_name # Pass parameters to fakers ENABLED= ## dotenver:boolean(chance_of_getting_true=50) # Name your values MYSQL_PASSWORD= ## dotenver:password(name=database_password, length=20) # And get the same value again, when the name is repeated. DB_PASSWORD= ## dotenver:password(name=database_password) # Output your values within double or single quotes DOUBLE_QUOTED_NAME= ## dotenver:name(quotes='"') SINGLE_QUOTED_NAME= ## dotenver:name(quotes="'") # Literal values are possible export EXPORTED_VARIABLE=exported
Run python DotEnver form the CLI:
$ dotenver -r
You now have a new .env file ready to use.
For more usage options run:
$ dotenver -h
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
dotenver-0.2.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
dotenver-0.2.0-py3-none-any.whl
(13.1 kB
view hashes)