Helper for getting secrets from different storage
Project description
secrets-storage is a helper for getting secrets from different storage.
Installation
secrets-storage is available on PyPI. Use pip to install:
$ pip install secrets-storage
Basic Usage
from secrets_storage import VaultStorage, ENVStorage, Secrets
IS_PROD = True
vault_storage = VaultStorage(
host="VAULT_ADDR",
namespace="VAULT_PATH",
role="VAULT_ROLE",
available=IS_PROD,
)
secrets = Secrets(storages=[vault_storage, ENVStorage()])
secrets.get("TEST_PASSWOD")
License
secrets-storage is developed and distributed under the Apache 2.0 license.
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
secrets-storage-0.1.2.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for secrets_storage-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e444574240b50de8963ef0aef8a387a6bfb94086e711b4b53969e0f1d13dc4d0 |
|
MD5 | 863eb198e85e2f61e44ddd4eb01c70e1 |
|
BLAKE2b-256 | 0041b984555b769709690345bb6d128edaa4efd91fc6e6eff5fe70265bb6bbc9 |