Skip to main content

SLD Secrets Getter

Very thin wrapper for the AWS Secrets Manager library for getting secrets in a standard way.

  • Free software: MIT license

Usage

Pre-requisites

  • AWS credentials
    • This package assumes the AWS cli environment variables have been configured for authentication. Alternatively, you can provide the values for those variables to the constructor.

Example

Install the package:

pip install sld.secrets-getter

Running with AWS cli environment variables set:

from secrets_getter import SecretsManagerService

secrets_service = SecretsManagerService()
secrets = secrets_service.get_secrets("NAME_OF_AWS_SECRETS_MANAGER_SECRETS_SET")

A dict with the key value pairs from the Secrets set is returned.

Providing the AWS cli credentials to the constructor:

from secrets_getter import SecretsManagerService

region = "us-west-2"
key_id = "AWS_ACCESS_KEY_ID"
secret_access_key = "SECRET_ACCESS_KEY"

secrets_service = SecretsManagerService(region=region, access_key_id=key_id, secret_access_key=secret_access_key)
secrets = secrets_service.get_secrets("NAME_OF_AWS_SECRETS_MANAGER_SECRETS_SET")

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sld.secrets_getter-0.2.5.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sld.secrets_getter-0.2.5-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sld.secrets_getter-0.2.5.tar.gz.

File metadata

  • Download URL: sld.secrets_getter-0.2.5.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.6

File hashes

Hashes for sld.secrets_getter-0.2.5.tar.gz
Algorithm Hash digest
SHA256 265a4f99e8eb06b8d7d8497989ba464226465c95de115a467f2d9655c816d7e4
MD5 01243aeb305dc0555ce8cbae11375a3c
BLAKE2b-256 8d5cdfc8f338813a5baeeeb1d50d26eff24f031284f43981062c5d9b1722e9c9

See more details on using hashes here.

File details

Details for the file sld.secrets_getter-0.2.5-py2.py3-none-any.whl.

File metadata

  • Download URL: sld.secrets_getter-0.2.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.6

File hashes

Hashes for sld.secrets_getter-0.2.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 db7a5d616e82deb4eac41301f1583ff2efd4f9709b1d41460a0e2c58a57b66e6
MD5 4dc9d727e3a8ad1cd3e43234b72db64f
BLAKE2b-256 b9596c58443c2c3e851283adb45b122658c5800451fb4687ab105ec87b49f503

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 files

0.2.3

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page