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 details)
Built Distribution
dotenver-0.5.0-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file dotenver-0.5.0.tar.gz
.
File metadata
- Download URL: dotenver-0.5.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.10 CPython/3.7.1 Darwin/18.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c25af42b0edb29ec6c942151a1b17f0a30fc3ce2d3c68dcbc90fbac985919f |
|
MD5 | 2e5906ce49a912df857f0406cdc8f357 |
|
BLAKE2b-256 | 07fe706411a53493c6f2e93c259320f8d0ab7b7c73a706dff8d8e3cad6fa76e5 |
File details
Details for the file dotenver-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: dotenver-0.5.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.10 CPython/3.7.1 Darwin/18.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb7216e18c1805f346ff36afa60da6809c07998f7e343f2c2ad81a2be6626d3 |
|
MD5 | 368942171c5aaf37893b252d8615c7d0 |
|
BLAKE2b-256 | 95f271bd63f7c4d8c2df23cb98554df3a58fdb30464037b126b10a5a91d0c9d1 |