Skip to main content

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


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.9.tar.gz (12.7 MB view hashes)

Uploaded Source

Built Distribution

aws_secrets-0.1.9-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page