Load environ vars from AWS Parameter Store
Project description
python-awsenviron
================
[![Supported Versions](https://img.shields.io/pypi/pyversions/awsenviron.svg)](https://pypi.python.org/pypi/awsenviron)
[![Build Status](https://travis-ci.org/douglasfarinelli/python-awsenviron.svg?branch=master)](https://travis-ci.org/douglasfarinelli/python-awsenviron)
[![Coverage Status](https://coveralls.io/repos/github/douglasfarinelli/python-awsenviron/badge.svg?branch=master)](https://coveralls.io/github/douglasfarinelli/python-awsenviron?branch=master)
[![PyPI version](https://badge.fury.io/py/awsenviron.svg)](https://pypi.python.org/pypi/awsenviron)
The `awsenviron` reads the key, value pair from [AWS Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-paramstore.html) and adds them to environment variable. This was inspired by [python-dotenv](https://github.com/theskumar/python-dotenv) and [12-factor](https://12factor.net/config) principles.
Installation
============
```bash
pip install awsenviron
```
or
```bash
pipenv install awsenviron
```
Usage
=====
```python
awsenviron.load_from_parameter_store(path='<your-path>')
```
Now, you can access the variables either from system environment variable:
```python
import os
DATABASE_URI = os.environ.get('DATABASE_URI')
```
Authentication
==============
awsenviron use `boto3` to authentication, [click here](http://boto3.readthedocs.io/en/latest/guide/configuration.html) to see the methods.
================
[![Supported Versions](https://img.shields.io/pypi/pyversions/awsenviron.svg)](https://pypi.python.org/pypi/awsenviron)
[![Build Status](https://travis-ci.org/douglasfarinelli/python-awsenviron.svg?branch=master)](https://travis-ci.org/douglasfarinelli/python-awsenviron)
[![Coverage Status](https://coveralls.io/repos/github/douglasfarinelli/python-awsenviron/badge.svg?branch=master)](https://coveralls.io/github/douglasfarinelli/python-awsenviron?branch=master)
[![PyPI version](https://badge.fury.io/py/awsenviron.svg)](https://pypi.python.org/pypi/awsenviron)
The `awsenviron` reads the key, value pair from [AWS Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-paramstore.html) and adds them to environment variable. This was inspired by [python-dotenv](https://github.com/theskumar/python-dotenv) and [12-factor](https://12factor.net/config) principles.
Installation
============
```bash
pip install awsenviron
```
or
```bash
pipenv install awsenviron
```
Usage
=====
```python
awsenviron.load_from_parameter_store(path='<your-path>')
```
Now, you can access the variables either from system environment variable:
```python
import os
DATABASE_URI = os.environ.get('DATABASE_URI')
```
Authentication
==============
awsenviron use `boto3` to authentication, [click here](http://boto3.readthedocs.io/en/latest/guide/configuration.html) to see the methods.
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
awsenviron-0.0.6.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for awsenviron-0.0.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec55ea793b4fdfca9f65fe06afd85b9442fd64683bf5ed7c2338d7375ced260 |
|
MD5 | 0213b5780a9760161634cfcd3d3c3809 |
|
BLAKE2b-256 | 352b9148639b4dd639d58e5982020ed116670ae1660201672f7ebad0248062fa |