AWS secrets manager helper
Project description
aws-vault
===============================
![travis-ci](https://api.travis-ci.org/spacetimelabs/awsvault.svg)
version number: 0.0.1
author: Spacetime Labs
Overview
--------
AWS Secrets Manager helper
Installation / Usage
--------------------
To install use pip:
$ pip install awsvault
Or clone the repo:
$ git clone https://github.com/spacetimelabs/awsvault.git
$ python setup.py install
Contributing
------------
pip install requirements-dev.txt
tox
Example
-------
```python
vault = Vault("myproject/email_secrets")
email_user = vault.get("EMAIL_USER")
email_password = vault.get("EMAIL_PASS")
```
```python
OVERRIDE = {
'EMAIL_USER': 'bart.simpsons@example.com'
}
vault = Vault("myproject/email_secrets", look_first=OVERRIDE)
email_user = vault.get('EMAIL_USER')
assert email_user == 'bart.simpsons@example.com'
```
```python
def my_super_special_get_config_fn(name):
if name == 'FRUIT':
return 'avocado'
vault = Vault("myproject/email_secrets", look_first=my_super_special_get_config_fn)
email_user = vault.get('EMAIL_USER')
fruit = vault.get('FRUIT')
assert fruit == 'avocado'
```
===============================
![travis-ci](https://api.travis-ci.org/spacetimelabs/awsvault.svg)
version number: 0.0.1
author: Spacetime Labs
Overview
--------
AWS Secrets Manager helper
Installation / Usage
--------------------
To install use pip:
$ pip install awsvault
Or clone the repo:
$ git clone https://github.com/spacetimelabs/awsvault.git
$ python setup.py install
Contributing
------------
pip install requirements-dev.txt
tox
Example
-------
```python
vault = Vault("myproject/email_secrets")
email_user = vault.get("EMAIL_USER")
email_password = vault.get("EMAIL_PASS")
```
```python
OVERRIDE = {
'EMAIL_USER': 'bart.simpsons@example.com'
}
vault = Vault("myproject/email_secrets", look_first=OVERRIDE)
email_user = vault.get('EMAIL_USER')
assert email_user == 'bart.simpsons@example.com'
```
```python
def my_super_special_get_config_fn(name):
if name == 'FRUIT':
return 'avocado'
vault = Vault("myproject/email_secrets", look_first=my_super_special_get_config_fn)
email_user = vault.get('EMAIL_USER')
fruit = vault.get('FRUIT')
assert fruit == 'avocado'
```
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
awsvault-0.0.4.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file awsvault-0.0.4.tar.gz
.
File metadata
- Download URL: awsvault-0.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4937a0c6ff953f32ba9da092ed81cce6f3ff2a7fb1b90a7894892d7d3c4676d1 |
|
MD5 | f76f0f2b30788a0abd1de00d7a2ee122 |
|
BLAKE2b-256 | 9a6ae1ffd2fed41cc9bfbec11c7e510b92dc83661fc46f0ff7fd438260b6d19a |
File details
Details for the file awsvault-0.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: awsvault-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a194bc9146014a3e7ab0c74843ebb44b68c86ff2c9feb4c3905db589474074ec |
|
MD5 | 52710cf24efb6fe7289725db4668378b |
|
BLAKE2b-256 | 24a44b5ea81de435494e45246228de6ae1d03e70d622baccb8aacb40bdf6c89f |