a cli to help, build multi env applications.
Project description
click to read first article about this package
a more efficient, automated, and developer-friendly approach, allowing them to define deployment environment requirements using simple JSON or YAML descriptions.
Specify the exact conditions under which a container can run, mitigating compatibility issues and enforcing security standards seamlessly…
This environment description can either be one or multiple files and can also be a combination for each type of environment…
$ pip install env_should_be
env_should_be -fs --description /path/to/description/db.yml /path/to/description/app.json --env-file /path/to/.env --callback ./notify_admin.bash
examples
a number of example should be available under this link
or just do a
env_should_be --help
env_should_be [-h] -d DESCRIPTION [DESCRIPTION ...] [-fs FAIL_SILENTLY] [-e ENV_FILE] [-cb CALLBACK]
How should your environment be?
options:
-d DESCRIPTION [DESCRIPTION ...], --description DESCRIPTION [DESCRIPTION ...]
<Required> either one or multiple paths for description files. (json/yml)
-fs FAIL_SILENTLY, --fail-silently FAIL_SILENTLY
<Optional> will return an exit status of 0 even if the description(s) fail to match the current env (still triggers the callback).
-e ENV_FILE, --env-file ENV_FILE
<Optional> not specifying a path to a specific env file to validate description(s) against, environment variables in the current shell will be loaded instead.
-cb CALLBACK, --callback CALLBACK
<Optional> a callback script to be executed an environment fails to match the a description. (still triggered on fail-silently)
TODOs:
- better exceptions
- support required arg
- support callbacks
- example Dockerfiles for different base images (only flask for now)
- a more helpful readme
- collect/open issues
- support older python versions
- support different/more complex descriptions
- support setting default values
- ship a single executable ?
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
env_should_be-0.2.5.tar.gz
(13.2 kB
view hashes)
Built Distribution
Close
Hashes for env_should_be-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d9fb5c1ddd1545b4f7b78aa79640e1db2937d77ea617ac01e26bd49709c792 |
|
MD5 | 73ba1d7e1b6b31ea5217b2fd270372ff |
|
BLAKE2b-256 | 75b01864b9bffdeec2742ba9ff6ee44fc3a6041bd7df53de4f56b79644704c7a |