Skip to main content

Vault library

Project description

Installation


pip install crio_vault

Get started


How to fetch keys required by a script from the AWS secret manager vault with this lib:

from crio_vault import vault

Instantiate

fetch = vault()

Call the fetch_and_store method

fetch.fetch_and_store("test100", "prod") key = json.loads(os.getenv('TEST100_PROD_SHEET_KEY')) # dict token = os.getenv('TEST100_PROD_TOKEN') # string

Print and check

print(key) print(type(key)) print(token) print(type(token))

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

crio_vault-1.1.5.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

crio_vault-1.1.5-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

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