Skip to main content

AWS SSM parameter store client that constructs nested dictionary out of hierarchical path

Project description

aws-parameter-store

AWS SSM parameter store client that constructs nested dictionary out of hierarchical path

Features

  • Gets parameters by path
  • Collects all paged results automatically
  • Lightweight

Installation

Install with pip:

pip install aws-parameter-store

Getting started

Import the module and create a new instance of AwsParameterStore.

from aws_parameter_store import AwsParameterStore

store = AwsParameterStore('us-east-1')

API

overview

By default

  • JSON parameters are being evaluated
  • Parameters are decrypted

Examples

Given the parameters:

Name Value
key-a wrong
example/key-b flat
example/key-c secret
example/path1/path2/key-d deep
ret = store.get_parameters_dict('/example/')
assert ret ==  {
    'key-b': 'flat',
    'key-c': 'secret',
    'path1': { 'path2': { 'key-d': 'deep' } }
}

Requirements

  • Python3.6+

Contributing

You are welcome to contribute and join our family =)

Testing

This projects testing uses pytest. Simply test by running pytest

License

See the LICENSE file for license rights and limitations (Apache License, Version 2.0)

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-parameter-store-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file aws-parameter-store-1.0.0.tar.gz.

File metadata

  • Download URL: aws-parameter-store-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.0

File hashes

Hashes for aws-parameter-store-1.0.0.tar.gz
Algorithm Hash digest
SHA256 da3db2436668d8550c1bdee551a2a74a8c41111ba95297733b2d06e00c0a0feb
MD5 6d46609331ea00d2c961b281a5400fd8
BLAKE2b-256 c2498f304e0ec08c7254ea490ee5304ec6b1c66157c81a612272e7bf7b937e63

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