aws-vault
===============================

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'
```
===============================

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'
```
Metadata
Release files for awsvault 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| awsvault-0.0.6.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awsvault-0.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.7 kB
Release files / awsvault-0.0.6.tar.gz
| Download URL | awsvault-0.0.6.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ece3d46e4d7bfcd03fb8005b01295ff44e77334532841013fcc045d33eaa3ef4
|
|
BLAKE2b-256 checksum How to use checksums |
f2ca490898525d5656dbbcf315009a2f32ad96e37c5ae28f5739108dddae82e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / awsvault-0.0.6-py2.py3-none-any.whl
| Download URL | awsvault-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
65642cbcf6b70474b61a433376ecbc5cf38689c3f7e1a9c380e1c30e4833a242
|
|
BLAKE2b-256 checksum How to use checksums |
649d637f53874a9a7bf2b711b68efb9ac896f05394a0d612afa7f99664ccf72a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|