semvec/pypi-packages huggingface dataset:
vault-crio 1.0.0
Vault library

# Installation
************
pip install vault_crio


# Get started
***********

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

from vault_crio import vault

# Instantiate a Multiplication object
fetch = vault(boto3.client('secretsmanager'))

# 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))