# secrets-storage
[![CI](https://github.com/bigbag/secrets-storage/workflows/CI/badge.svg)](https://github.com/bigbag/secrets-storage/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/bigbag/secrets-storage/branch/main/graph/badge.svg?token=FQTY888XG1)](https://codecov.io/gh/bigbag/secrets-storage)
[![pypi](https://img.shields.io/pypi/v/secrets-storage.svg)](https://pypi.python.org/pypi/secrets-storage)
[![downloads](https://img.shields.io/pypi/dm/secrets-storage.svg)](https://pypistats.org/packages/secrets-storage)
[![versions](https://img.shields.io/pypi/pyversions/secrets-storage.svg)](https://github.com/bigbag/secrets-storage)
[![license](https://img.shields.io/github/license/bigbag/secrets-storage.svg)](https://github.com/bigbag/secrets-storage/blob/master/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
```py
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](https://github.com/bigbag/secrets-storage/security/policy).
Raw data
{
"_id": null,
"home_page": "https://github.com/bigbag/secrets-storage",
"name": "secrets-storage",
"maintainer": "Pavel Liashkov",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "pavel.liashkov@protonmail.com",
"keywords": "",
"author": "Pavel Liashkov",
"author_email": "pavel.liashkov@protonmail.com",
"download_url": "https://files.pythonhosted.org/packages/d9/cb/0e284aa70b03130f7bd698f538fc0c262803127bc0fc64dc8f7ad36b5f1e/secrets-storage-0.10.0.tar.gz",
"platform": "POSIX",
"description": "# secrets-storage\n\n[![CI](https://github.com/bigbag/secrets-storage/workflows/CI/badge.svg)](https://github.com/bigbag/secrets-storage/actions?query=workflow%3ACI)\n[![codecov](https://codecov.io/gh/bigbag/secrets-storage/branch/main/graph/badge.svg?token=FQTY888XG1)](https://codecov.io/gh/bigbag/secrets-storage)\n[![pypi](https://img.shields.io/pypi/v/secrets-storage.svg)](https://pypi.python.org/pypi/secrets-storage)\n[![downloads](https://img.shields.io/pypi/dm/secrets-storage.svg)](https://pypistats.org/packages/secrets-storage)\n[![versions](https://img.shields.io/pypi/pyversions/secrets-storage.svg)](https://github.com/bigbag/secrets-storage)\n[![license](https://img.shields.io/github/license/bigbag/secrets-storage.svg)](https://github.com/bigbag/secrets-storage/blob/master/LICENSE)\n\n\n**secrets-storage** is a helper for getting secrets from different storage.\n\n\n## Installation\n\nsecrets-storage is available on PyPI.\nUse pip to install:\n\n $ pip install secrets-storage\n\n## Basic Usage\n\n```py\nfrom secrets_storage import VaultStorage, ENVStorage, Secrets\n\nIS_PROD = True\n\nvault_storage = VaultStorage(\n host=\"VAULT_ADDR\",\n namespace=\"VAULT_PATH\",\n role=\"VAULT_ROLE\",\n available=IS_PROD,\n)\n\nsecrets = Secrets(storages=[vault_storage, ENVStorage()])\n\n\nsecrets.get(\"TEST_PASSWOD\")\n```\n\n## License\n\nsecrets-storage is developed and distributed under the Apache 2.0 license.\n\n## Reporting a Security Vulnerability\n\nSee our [security policy](https://github.com/bigbag/secrets-storage/security/policy).\n",
"bugtrack_url": null,
"license": "Apache License, Version 2.0",
"summary": "Helper for getting secrets from different storage",
"version": "0.10.0",
"project_urls": {
"Download": "https://pypi.python.org/pypi/secrets-storage",
"Homepage": "https://github.com/bigbag/secrets-storage"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2bb601343bada48986bba83e1fe2c935d9d075b1d81521bfb188838feac86fe8",
"md5": "21fad19630b90dcb5bc56053f781f871",
"sha256": "11a468dc730f2326440ccefe23f0b69cb973e090b50668b5fb495bc54ceb1387"
},
"downloads": -1,
"filename": "secrets_storage-0.10.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "21fad19630b90dcb5bc56053f781f871",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 9811,
"upload_time": "2023-08-03T11:28:11",
"upload_time_iso_8601": "2023-08-03T11:28:11.961263Z",
"url": "https://files.pythonhosted.org/packages/2b/b6/01343bada48986bba83e1fe2c935d9d075b1d81521bfb188838feac86fe8/secrets_storage-0.10.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d9cb0e284aa70b03130f7bd698f538fc0c262803127bc0fc64dc8f7ad36b5f1e",
"md5": "dc2436255720c64443314541acfd3b74",
"sha256": "5b47f6fb237afde6bb667b75e7c9cbd144345c11cab2fc9a18725fa30dd10f4c"
},
"downloads": -1,
"filename": "secrets-storage-0.10.0.tar.gz",
"has_sig": false,
"md5_digest": "dc2436255720c64443314541acfd3b74",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 7820,
"upload_time": "2023-08-03T11:28:12",
"upload_time_iso_8601": "2023-08-03T11:28:12.884358Z",
"url": "https://files.pythonhosted.org/packages/d9/cb/0e284aa70b03130f7bd698f538fc0c262803127bc0fc64dc8f7ad36b5f1e/secrets-storage-0.10.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-03 11:28:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bigbag",
"github_project": "secrets-storage",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "secrets-storage"
}