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.0.tar.gz
(14.6 kB
view hashes)
Built Distribution
awstanding-1.0.0-py3-none-any.whl
(14.8 kB
view hashes)
Close
Hashes for awstanding-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af17d3ff8291ab4e44c29b4c17f0df849a1418c4c6c4a23c3e8c52a4faa92fbe |
|
MD5 | a28a67d5d80e05d85f90ab0637ef1bbb |
|
BLAKE2b-256 | fdbde53d0a127fe2aea7988e128cc9286e8cb4b5c85b3f6374788287fd595282 |