Automatically generate .env files from .env.example
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=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
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.2.0.tar.gz
(5.8 kB
view details)
Built Distribution
dotenver-0.2.0-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file dotenver-0.2.0.tar.gz
.
File metadata
- Download URL: dotenver-0.2.0.tar.gz
- Upload date:
- Size: 5.8 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 | a485ae22b6d5ed9967d5a0b4706f8d253e763f56cb3ce28ac40e961e64b842c1 |
|
MD5 | 4c713555a2490797f3d2dbdaf88c8c8f |
|
BLAKE2b-256 | 81f9c5e9cabd7201f0385da1a90c37b419f80619cb059569472c14fece006189 |
File details
Details for the file dotenver-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: dotenver-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.1 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 | c4d314c4710edff16d774e402c057066d0982951ff04dee071ab47fdad4f98eb |
|
MD5 | 5578623e0f53a26bd8c8ef656fdcfde3 |
|
BLAKE2b-256 | a9e851018a0c51a61fbfa219fc5e22a6f612de70e63d4e52aafa9a66e20302d6 |