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_dict import AwsSecrets
# Need AWS Key & Secret
my_key = "Your AWS Secrets Access Key, or set 'AWS_SECRETS_KEY' env variable"
my_secret = "Your AWS Secrets Secret Key or set 'AWS_SECRETS_SECRET' env variable"
aws_region = "Your AWS Region or set 'AWS_REGION' env variable. If not set/specified, 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.
Metadata
Release files for aws-secrets-dict 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aws_secrets_dict-1.2.0.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_secrets_dict-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / aws_secrets_dict-1.2.0.tar.gz
| Download URL | aws_secrets_dict-1.2.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5406c4f997a78a13fa0091ef9f37158550ed1d1533182212c8f63118e45452d
|
|
BLAKE2b-256 checksum How to use checksums |
2be62772ec2a5a29f8a490cd3b37407d9cf395058f0ef7b35591d0dc35270365
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / aws_secrets_dict-1.2.0-py3-none-any.whl
| Download URL | aws_secrets_dict-1.2.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62951ba501e13ad428fdcb64d27d369064c2747234f0f4b000ecda08033a2051
|
|
BLAKE2b-256 checksum How to use checksums |
9e67300372d115f5fd2676e07f39b2e10a08383ceb0951bed86afa5b5aa11454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for aws-secrets-dict 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.