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 details)
Built Distribution
File details
Details for the file aws_secrets-0.1.10.tar.gz
.
File metadata
- Download URL: aws_secrets-0.1.10.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cf6ebf44f250e5e4a193adacd5eb027732009898bb40a6374b1bf00e44ae669 |
|
MD5 | ba2bfdf0367a456b1fe76d40dbe01e2a |
|
BLAKE2b-256 | f4cb2dc3dff451631c4d8e631a2240d591a4ce21eddc9fedde0375dd12af7d58 |
File details
Details for the file aws_secrets-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: aws_secrets-0.1.10-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a92b3c3fbb831d3493eb502edb529c0ea280e09b2e9163b3aff5a6711504b6 |
|
MD5 | 0c99ac87e2b92ffd3d1815a20ad5de98 |
|
BLAKE2b-256 | 669047868338472f89c5c70cbdd1af9bd607d64ead388f78764d187c31b15bff |