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.10.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

aws_secrets-0.1.10-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for aws_secrets-0.1.10.tar.gz
Algorithm Hash digest
SHA256 6cf6ebf44f250e5e4a193adacd5eb027732009898bb40a6374b1bf00e44ae669
MD5 ba2bfdf0367a456b1fe76d40dbe01e2a
BLAKE2b-256 f4cb2dc3dff451631c4d8e631a2240d591a4ce21eddc9fedde0375dd12af7d58

See more details on using hashes here.

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

Hashes for aws_secrets-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 84a92b3c3fbb831d3493eb502edb529c0ea280e09b2e9163b3aff5a6711504b6
MD5 0c99ac87e2b92ffd3d1815a20ad5de98
BLAKE2b-256 669047868338472f89c5c70cbdd1af9bd607d64ead388f78764d187c31b15bff

See more details on using hashes here.

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