aws-secrets-dict


Nameaws-secrets-dict JSON
Version 1.2.0 PyPI version JSON
download
home_pagehttps://github.com/davocarli/aws_secrets_dictionary
SummaryA class allowing you to interact with the AWS Secrets Manager with python dictionary syntax.
upload_time2024-09-12 13:57:49
maintainerNone
docs_urlNone
authorDavid Carli-Arnold
requires_pythonNone
licenseMIT
keywords aws aws secrets aws-secrets dictionary class
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# AWS Secrets Dict

aws_secrets_dict is a Dictionary-based class acting as a wrapper for the [AWS Secrets Manager](https://aws.amazon.com/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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/davocarli/aws_secrets_dictionary",
    "name": "aws-secrets-dict",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "AWS, AWS Secrets, aws-secrets, dictionary, class",
    "author": "David Carli-Arnold",
    "author_email": "davocarli@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2b/e6/2772ec2a5a29f8a490cd3b37407d9cf395058f0ef7b35591d0dc35270365/aws_secrets_dict-1.2.0.tar.gz",
    "platform": null,
    "description": "\n# AWS Secrets Dict\n\naws_secrets_dict is a Dictionary-based class acting as a wrapper for the [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/). It allows you to Get, Update, & Delete secrets using the notation/syntax of a python dictionary.\n\n## Example Usage\n```\nfrom aws_secrets_dict import AwsSecrets\n\n# Need AWS Key & Secret\nmy_key = \"Your AWS Secrets Access Key, or set 'AWS_SECRETS_KEY' env variable\"\nmy_secret = \"Your AWS Secrets Secret Key or set 'AWS_SECRETS_SECRET' env variable\"\naws_region = \"Your AWS Region or set 'AWS_REGION' env variable. If not set/specified, defaults to us-east-2\"\n\nmysecrets = AwsSecrets(my_key, my_secret, aws_region)\n\nmysecrets['One'] = 1\nmysecrets[2] = \"Two\"\nmysecrets[\"2\"] = 22222\nmysecrets['Greeting'] = \"Hello\"\n\nmysecrets['One']\n# 1\nmysecrets[2]\n# \"Two\"\nmysecrets[\"2\"]\n# 22222\nmysecrets['Greeting']\n# \"Hello\"\n```\n\n## Notes\nThe 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.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A class allowing you to interact with the AWS Secrets Manager with python dictionary syntax.",
    "version": "1.2.0",
    "project_urls": {
        "Homepage": "https://github.com/davocarli/aws_secrets_dictionary"
    },
    "split_keywords": [
        "aws",
        " aws secrets",
        " aws-secrets",
        " dictionary",
        " class"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9e67300372d115f5fd2676e07f39b2e10a08383ceb0951bed86afa5b5aa11454",
                "md5": "5dc404785a096697bbf983d09efd48c4",
                "sha256": "62951ba501e13ad428fdcb64d27d369064c2747234f0f4b000ecda08033a2051"
            },
            "downloads": -1,
            "filename": "aws_secrets_dict-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5dc404785a096697bbf983d09efd48c4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4043,
            "upload_time": "2024-09-12T13:57:46",
            "upload_time_iso_8601": "2024-09-12T13:57:46.330885Z",
            "url": "https://files.pythonhosted.org/packages/9e/67/300372d115f5fd2676e07f39b2e10a08383ceb0951bed86afa5b5aa11454/aws_secrets_dict-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2be62772ec2a5a29f8a490cd3b37407d9cf395058f0ef7b35591d0dc35270365",
                "md5": "0b5cbcc8419cd13ec2e925e2d7039387",
                "sha256": "b5406c4f997a78a13fa0091ef9f37158550ed1d1533182212c8f63118e45452d"
            },
            "downloads": -1,
            "filename": "aws_secrets_dict-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0b5cbcc8419cd13ec2e925e2d7039387",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3755,
            "upload_time": "2024-09-12T13:57:49",
            "upload_time_iso_8601": "2024-09-12T13:57:49.174467Z",
            "url": "https://files.pythonhosted.org/packages/2b/e6/2772ec2a5a29f8a490cd3b37407d9cf395058f0ef7b35591d0dc35270365/aws_secrets_dict-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-12 13:57:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "davocarli",
    "github_project": "aws_secrets_dictionary",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aws-secrets-dict"
}
        
Elapsed time: 0.36734s