Vault library
Project description
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))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vault_crio-1.0.0.tar.gz.
File metadata
- Download URL: vault_crio-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b38d288877838c4371b944208e33bcc61a08e96b39651f3b2ffb0c0b6f3594
|
|
| MD5 |
103d8681173734bb79c047ddc3f8d58b
|
|
| BLAKE2b-256 |
eccf18c21b7cf4fe19c0f925d23610b6c0c97b252d151bfd844e2cd6a5059ead
|
File details
Details for the file vault_crio-1.0.0-py3-none-any.whl.
File metadata
- Download URL: vault_crio-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2acc675aa59ac03a01db64ab3d8c331a86e6dd57ee9164a31c3d3101a8794383
|
|
| MD5 |
bee7490b61f171c47ca6f8b6cf5cfe5f
|
|
| BLAKE2b-256 |
09f12f2ef355da545b3c89cbe6c8f2d9d475f31c656662b5953dc578d6693806
|