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=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.8.0.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file dotenver-0.8.0.tar.gz
.
File metadata
- Download URL: dotenver-0.8.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.6 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c97df3df26cedb61d1b1be718608847f6684661c421dedb15c8f946940ba3f1 |
|
MD5 | d1f13ccb84835b3be00c9df59d2e8d6b |
|
BLAKE2b-256 | ace0224af4475b12b2706ef48c1e2ff11d8a6080a31ba9f8ab499ef31e2b0b98 |
File details
Details for the file dotenver-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: dotenver-0.8.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.6 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a747d196132817347d50f81237f387b265988f3c92594d9d24263b06df15fb |
|
MD5 | 9f56919c351a9a254a8c7bd1fb0d969d |
|
BLAKE2b-256 | 82f11547579463f88b73e77e867ef7beeb3be96083a89502e826030538df324e |