Automatically generate .env files from .env.example template files
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=
exportedRun python DotEnver form the CLI
$ dotenver -r
You now have a new .env file ready to use.
For more usage options run
$ dotenver -h
Docker
A Docker image is provided. To use it, mount your source code to /var/lib/dotenver/ and run the container.
$ docker run --rm -v `pwd`:/var/lib/dotenver/ jmfederico/dotenver
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.5.0.tar.gz
(6.0 kB
view hashes)
Built Distribution
dotenver-0.5.0-py3-none-any.whl
(13.5 kB
view hashes)