AWS Extensions for Python Decouple
Project description
AWS Extensions for Python Decouple
Installation
pip install python-decouple-aws
Usage
# Import from decouple import Config from decouple_aws import get_config, RepositoryAwsSecretManager # The package provides a wrapper function that will # fallback to environment variables and fail gracefully # if AWS Secrets Manager is not accessible for whatever # reason. config = get_config('your/secret/name', 'ap-southeast-2') # Alternatively, if you would like it to fail if secrets # manager is inaccessible, you can build it manually. # initialise the config with the AWS repository # Pass the repo your secret name and the region repo = RepositoryAwsSecretManager('your/secret/name', 'ap-southeast-2') config = Config(repo) # Use decouple config like normal MY_SUPER_SECRET_SETTING = config('MY_SUPER_SECRET_SETTING')
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
Built Distribution
Close
Hashes for python-decouple-aws-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d180c10dd84b172c77d3f1b61fb750dcde5212a2ead039bfb980d61758434172 |
|
MD5 | 9ef480b32f76e35318d5cfa781cc3faa |
|
BLAKE2b-256 | 5533030ad495d7a7a54bb136d5478a6e21c583ca112e03069e9f1a62ff6c9320 |
Close
Hashes for python_decouple_aws-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58666eeaf5f216c4726ac8851a1f1034967844dc5212e9c08a3e6759ba95574d |
|
MD5 | 4d27b62548d66f8e97931c8f2defac65 |
|
BLAKE2b-256 | 48b6336fc7bb1f32e88c37b1e380b0215443e345ce2853f2a6bf23255bc0ee57 |