env-config
A tool for configuring your application via environment variables
Free software: MIT license
Documentation: https://env-config.readthedocs.io.
Features
Gets configuration from environment variables that start with app_name optionally allowing you to load the environment variables as json
Example with load_as_json=True
from env_config import get_envvar_configuration # Assuming that there are the following environment variables # MYAPP_BOOL=false # MYAPP_DICT={"some_key": "some_value"} # MYAPP_STRING=blahblahblah # NOTMYAPP_VARIABLE=this wont be recognized config = get_envvar_configuration('myapp') print(config) # prints out {'BOOL': False, 'DICT': {'some_key': 'some_value'}, 'STRING': 'blahblahblah'}Example with load_as_json=False
config = get_envvar_configuration('myapp', load_as_json=False) print(config) # prints out {'BOOL': 'false', 'DICT': '{"some_key": "some_value"}', 'STRING': 'blahblahblah'}
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2016-07-11)
First release on PyPI.
Metadata
Release files for py-env-config 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-env-config-0.1.2.tar.gz | 12.2 kB | Without provenance | Details for py-env-config-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_env_config-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for py_env_config-0.1.2-py2.py3-none-any.whl |
Total release size: 16.9 kB
Release files / py-env-config-0.1.2.tar.gz
| Download URL | py-env-config-0.1.2.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8001c4774cac6bc623602bec1316bc74aacfc4e963df26acc406fe96caaad750
|
|
BLAKE2b-256 checksum How to use checksums |
537a3724d2448dddd516016ce13649a8a4ade133b4791fc1371c2dcf95ff3104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / py_env_config-0.1.2-py2.py3-none-any.whl
| Download URL | py_env_config-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fec7f4e14cf570dde57d9eb74b6045698219870f1e20567e07a01a85c1f0d528
|
|
BLAKE2b-256 checksum How to use checksums |
90ce1ef9f974510c7e833b182f12bdc2754bf08db593212ccf470f7927c9b98f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for py-env-config 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.