Python library for resolving secrets from AWS Secrets Manager
Project description
This library allows you to use credentials stored in AWS Secrets Manager within your code. It will lazily resolve secret values when they are evaluated, or resolve all secrets when AWSCredential.resolve_secrets() is called.
Usage
from aws_secrets import AWSCredential
db = AWSCredential('path/to/key')
# credential is resolved here
print(db['username'])
secret_one = AWSCredential('path/to/key_one')
secret_two = AWSCredential('path/to/key_one')
# both credentials are resolved here
AWSCredential.resolve_secrets()
print(secret_one)
print(secret_two)
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
aws_secrets-0.1.10.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for aws_secrets-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a92b3c3fbb831d3493eb502edb529c0ea280e09b2e9163b3aff5a6711504b6 |
|
MD5 | 0c99ac87e2b92ffd3d1815a20ad5de98 |
|
BLAKE2b-256 | 669047868338472f89c5c70cbdd1af9bd607d64ead388f78764d187c31b15bff |