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:my_password(length=20) # And get the same value again, when the name is repeated. DB_PASSWORD= ## dotenver:password:my_password() # Output your values within double or single quotes DOUBLE_QUOTED= ## dotenver:last_name(quotes='"') SINGLE_QUOTED= ## dotenver:last_name(quotes="'") # Literal values are possible STATIC_VARIABLE=static value # export syntax can be used 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
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.7.1.tar.gz
(6.4 kB
view details)
Built Distribution
dotenver-0.7.1-py3-none-any.whl
(15.2 kB
view details)
File details
Details for the file dotenver-0.7.1.tar.gz
.
File metadata
- Download URL: dotenver-0.7.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.11 CPython/3.7.1 Darwin/18.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9a55e9c5b0560f292bfdfb708ac52532cda5267cc590d0b57293fecd5da521 |
|
MD5 | ab424f5081eb5a6dc09f210a18693370 |
|
BLAKE2b-256 | cb89a9fa0677ac47cfbae4cdbdf044814b522e825443617de22a65cfa9dad46b |
File details
Details for the file dotenver-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: dotenver-0.7.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.11 CPython/3.7.1 Darwin/18.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7de385c1a6becbe1fe73061bab7f27a9b1e4d5441ff5bf976498bdc45536e183 |
|
MD5 | 2c4d87d9b0ab69d127a228f1144f03b1 |
|
BLAKE2b-256 | 66123db46f641308d179203683bf309db0ab694c108816c6e195d31cfc5454c5 |