# Vault Credential Fetcher
Convenient wrapper for executing codes on AWS for connecting and fetching credentials from vault.
## Install with pip
```bash
$ pip install AwsVaultCredential
```
## Usage
1. Import the library.
```python
from AwsVaultCredential import VaultCredentialFetcher
```
1. Create an instance.
```python
vc = VaultCredentialFetcher(project_path="",
logger=<your_logger_instance>,
environment="",
vault_region="",
vault_role_id="",
display_vault_info=True,
vault_config_path="")
```
Arguments (all are mandatory):
* `project_path`: Project name, which would serve as the logger's name (*if specified*), and the prefix for log filenames.
* `logger`: your Logger Instance
* `"environment"`: Execution Environment
* `"vault_region"`: Region in which application is deployed on AWS while vault onborarding
* `"vault_role_id"`: Role ID/Role Name specific to your application when onboarded
* `"display_vault_info"`: By default it is False, used for displaying vault info
* `"vault_config_path"`: Path where vault config is kept, relative to project path
2. Get a logger and start logging.
```python
VaultCreds = vc.get_vault_cred()
```
## Author
**© 2022, [Priyansh Gupta](priyansh.gupta@gartner.com)**.
Raw data
{
"_id": null,
"home_page": "",
"name": "SecretManagerCredentials",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Vault Credential Fetch,Credential Fetch,Vault",
"author": "Mallikarjuna Devaraya",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/0e/e5/77905ef996b1266f1a0f2be46ebedd2f74ed22a34f908f5a817f4165a76c/SecretManagerCredentials-0.0.5.tar.gz",
"platform": null,
"description": "# Vault Credential Fetcher\r\nConvenient wrapper for executing codes on AWS for connecting and fetching credentials from vault.\r\n\r\n## Install with pip\r\n```bash\r\n$ pip install AwsVaultCredential\r\n```\r\n\r\n## Usage\r\n1. Import the library.\r\n ```python\r\n from AwsVaultCredential import VaultCredentialFetcher\r\n ```\r\n\r\n1. Create an instance.\r\n ```python \r\n vc = VaultCredentialFetcher(project_path=\"\",\r\n logger=<your_logger_instance>,\r\n environment=\"\",\r\n vault_region=\"\",\r\n vault_role_id=\"\",\r\n display_vault_info=True,\r\n vault_config_path=\"\")\r\n ```\r\n Arguments (all are mandatory):\r\n * `project_path`: Project name, which would serve as the logger's name (*if specified*), and the prefix for log filenames.\r\n * `logger`: your Logger Instance\r\n * `\"environment\"`: Execution Environment\r\n * `\"vault_region\"`: Region in which application is deployed on AWS while vault onborarding\r\n * `\"vault_role_id\"`: Role ID/Role Name specific to your application when onboarded \r\n * `\"display_vault_info\"`: By default it is False, used for displaying vault info\r\n * `\"vault_config_path\"`: Path where vault config is kept, relative to project path\r\n \r\n2. Get a logger and start logging.\r\n ```python\r\n VaultCreds = vc.get_vault_cred()\r\n ```\r\n\r\n## Author\r\n\r\n**© 2022, [Priyansh Gupta](priyansh.gupta@gartner.com)**.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Convenient wrapper for executing codes on AWS for connecting and fetching credentials from vault",
"version": "0.0.5",
"project_urls": null,
"split_keywords": [
"vault credential fetch",
"credential fetch",
"vault"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9a3deeaf7efd9d9a90e27deeb89f2a97047759e657c232c48a2a9c82720e4851",
"md5": "d802b922d9f8d9726b3cc979b3b01ed4",
"sha256": "5f67abd613f10c721d273fbd0e68045fb2240eac8ff9a3dc4d28e849b3d3761d"
},
"downloads": -1,
"filename": "SecretManagerCredentials-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d802b922d9f8d9726b3cc979b3b01ed4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5587,
"upload_time": "2023-05-17T02:19:19",
"upload_time_iso_8601": "2023-05-17T02:19:19.740286Z",
"url": "https://files.pythonhosted.org/packages/9a/3d/eeaf7efd9d9a90e27deeb89f2a97047759e657c232c48a2a9c82720e4851/SecretManagerCredentials-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0ee577905ef996b1266f1a0f2be46ebedd2f74ed22a34f908f5a817f4165a76c",
"md5": "d98cdd851a960b4692ca0a177ca22ff2",
"sha256": "08ab2f5c3527ca7e4bd068e7876ec958f15ceee2b502e84304ab4f2a98278783"
},
"downloads": -1,
"filename": "SecretManagerCredentials-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "d98cdd851a960b4692ca0a177ca22ff2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5120,
"upload_time": "2023-05-17T02:19:21",
"upload_time_iso_8601": "2023-05-17T02:19:21.419139Z",
"url": "https://files.pythonhosted.org/packages/0e/e5/77905ef996b1266f1a0f2be46ebedd2f74ed22a34f908f5a817f4165a76c/SecretManagerCredentials-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-17 02:19:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "secretmanagercredentials"
}