awsenviron-0.0.7
توضیحات
Load environ vars from AWS Parameter Store
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | awsenviron-0.0.7 |
| نام | awsenviron |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Douglas Farinelli |
| ایمیل نویسنده | douglas.farinelli@gmail.com |
| آدرس صفحه اصلی | https://github.com/douglasfarinelli/python-awsenviron |
| آدرس اینترنتی | https://pypi.org/project/awsenviron/ |
| مجوز | MIT |
python-awsenviron
================
[](https://pypi.python.org/pypi/awsenviron)
[](https://travis-ci.org/douglasfarinelli/python-awsenviron)
[](https://coveralls.io/github/douglasfarinelli/python-awsenviron?branch=master)
[](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.
نحوه نصب
نصب پکیج whl awsenviron-0.0.7:
pip install awsenviron-0.0.7.whl
نصب پکیج tar.gz awsenviron-0.0.7:
pip install awsenviron-0.0.7.tar.gz