Skip to main content

A class allowing you to interact with the AWS Secrets Manager with python dictionary syntax.

Project description

AWS Secrets Dict

aws_secrets_dict is a Dictionary-based class acting as a wrapper for the AWS Secrets Manager. It allows you to Get, Update, & Delete secrets using the notation/syntax of a python dictionary.

Example Usage

from aws_secrets_dictionary import AwsSecrets

# Need AWS Key & Secret
my_key = "Your AWS Secrets Access Key"
my_secret = "Your AWS Secrets Secret Key"
aws_region = "Your AWS Region - Defaults to 'us-east-2'"

mysecrets = AwsSecrets(my_key, my_secret, aws_region)

mysecrets['One'] = 1
mysecrets[2] = "Two"
mysecrets["2"] = 22222
mysecrets['Greeting'] = "Hello"

mysecrets['One']
# 1
mysecrets[2]
# "Two"
mysecrets["2"]
# 22222
mysecrets['Greeting']
# "Hello"

Notes

The class will use the json module to serialize the keys & values, which allows it to distinguish between types when setting keys & retrieving values. Make sure that your keys/values can all be serialized into json.

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_dict-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

aws_secrets_dict-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file aws_secrets_dict-1.0.0.tar.gz.

File metadata

  • Download URL: aws_secrets_dict-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for aws_secrets_dict-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8b7252d4f4f52bf52a22a5dd1c53b208313188130a1d404a6ef9309b300e1184
MD5 bbadffbed46a20373174a5ca23d17676
BLAKE2b-256 67af128b7dfd7edf98c7756d7571ed2ee0f75e02df53c8b61f59f7fbccb7e7b7

See more details on using hashes here.

File details

Details for the file aws_secrets_dict-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_secrets_dict-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ca24d339e544569e34821d6ffbf8fc0e45a68be5bf82f7c2219037849775f28
MD5 e2ab46ceb28e02d971d0b90f57f05681
BLAKE2b-256 2745c3f8c95d0747c363b2db59f0e6ea3e26bd0b0d7e9d89da3311a83cf57bc6

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