Load parameters from AWS Parameter Store
Project description
AWStanding
Easily load variables from AWS Parameter store into environment variables.
Quickstart
from awstanding.parameter_store import load_parameters
load_parameters({'/some/path/to/something/stored': 'IMPORTANT_SETTING'})
import os
print(os.environ.get('IMPORTANT_SETTING'))
'super-important-value'
Using with python-decouple
import os
from awstanding.parameter_store import load_parameters
from decouple import config
load_parameters({'/some/path/to/something/stored': 'IMPORTANT_SETTING'})
IMPORTANT_SETTING = config('IMPORTANT_SETTING', default='some-default')
print(IMPORTANT_SETTING)
'super-important-value'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
awstanding-1.0.1.tar.gz
(14.6 kB
view hashes)
Built Distribution
awstanding-1.0.1-py3-none-any.whl
(14.8 kB
view hashes)
Close
Hashes for awstanding-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed75b2d2097dbf70e16d75f90e009d5f02edaf0f656dfd859fe95089279fda0c |
|
MD5 | 061a15a216c995bd77751cf6c2ff1a76 |
|
BLAKE2b-256 | 262bf06c234c2b5b8e31deca00ab07aa658f7df528b3ff433f272bce142f6ef3 |