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.3.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for secrets_storage-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fba755efa84bc201a6219882f5619ecdaa648bf3a84ea568c0e116c7cee0377f |
|
MD5 | 1a8c22860467a8a7976d2e3078d700c1 |
|
BLAKE2b-256 | cbbd3f54cc6925ef71a416373cbdc6ab6bc6e6cf6c723a4cb3f1d5e6feaac8c7 |