Skip to main content

Helper for getting secrets from different storage

Project description

secrets-storage

CI codecov pypi downloads versions license

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.

Reporting a Security Vulnerability

See our security policy.

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

secrets-storage-0.11.0.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

secrets_storage-0.11.0-py3-none-any.whl (9.8 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