Moves the environment variables from a docker compose file into a .env file.
Project description
Extract Env
CLI
$ extract-env -h
Usage: extract-env [OPTIONS]
Options:
-e, --env_folder PATH Folder where the .env file/s to/are located.
Default: ./
--env-file-name PATH Folder where the .env file/s to/are located.
Default: .env
--use-current-env / --no-use-current-env
Use the current env files. Default: True
-c, --compose-folder DIRECTORY Folder where the compose file/s are located.
Default: ./
-C, --combine / -N, --no-combine
Combine like named environment variables
across services. Default: True
-p, --prefix TEXT Prefix to add to all environment variable
names. Default: ""
--postfix TEXT postfix to add to all environment variable
names. Default: ""
-w, --write / -d, --dry-run Write the environment variables to file.
Default: True
--display / --no-display Displays the file output in the terminal.
Default: False
-u, --update-compose / -n, --no-update-compose
Update the docker compose file with the new
environment variable names. Default: True
-A, --all-files / -S, --selected-file
Update the docker compose file with the new
environment variable names. Default: True
-f, --compose_file FILE Update this/these docker compose file/s with
the new environment variable names. Used for
specifying the paths of each file. When
paths are specified it is assumed that
--selected-files has been given. Default:
None
-t, --test Test the program using files in the example
folder. Default: False
-h, --help Show this message and exit.
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
extract_env-0.1.0.tar.gz
(11.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file extract_env-0.1.0.tar.gz.
File metadata
- Download URL: extract_env-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
790badef9a64e98f91cf53b57d1a465d3ca6faad735f6475999845f5b0e01a3b
|
|
| MD5 |
4196778f59ce5dc052069d48d03ddf62
|
|
| BLAKE2b-256 |
78d2037713d12b8fe134a0813dddcaac80fc3284d6f19dce212b9e685d2092a2
|
File details
Details for the file extract_env-0.1.0-py3-none-any.whl.
File metadata
- Download URL: extract_env-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66a51613807649011ba9a8d30974ab99593bd81e89b4e4d9f8d3207e4bd87d5a
|
|
| MD5 |
b4712639e12687bd03fe3c51146f95e5
|
|
| BLAKE2b-256 |
f2eedeae5dbb2d2e91be54b10ae0f0d2e1203e71b45ed852ceffc7010870769c
|