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 -ti --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-1.1.0.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file dotenver-1.1.0.tar.gz
.
File metadata
- Download URL: dotenver-1.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/2.7.16 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1a9749f9f783bbc170384f3e6128483d2a52d702417b8ce7c0e0b565e5b5af1 |
|
MD5 | d19c984f5753136e6e5c8aed0ac60ff8 |
|
BLAKE2b-256 | bcc8fdb22a868fd3f0bb3f1ed2f392f6fe3061e5abeff0072a71e40928056187 |
File details
Details for the file dotenver-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: dotenver-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/2.7.16 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14940e3016aef2d36a5d4288d33de2746afca5715b254e18bd67d0dca2ee6e5d |
|
MD5 | 54a346d58c4637e6127a1f32ce5a632b |
|
BLAKE2b-256 | 332e587d52874b4a9dc47ec5211e525a9d92592440ece1cb4340e2e66f516c8a |