Skip to main content

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.

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.7.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

awsenviron-0.0.7-py2-none-any.whl (4.1 kB view details)

Uploaded Python 2

File details

Details for the file awsenviron-0.0.7.tar.gz.

File metadata

  • Download URL: awsenviron-0.0.7.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for awsenviron-0.0.7.tar.gz
Algorithm Hash digest
SHA256 53bef220e2b764a66b2a0939287b1a70948cabae8a433170b1a68d3a8fe8610f
MD5 95db03b6e0412d3d2a97af2d43b21cf3
BLAKE2b-256 0e55073ce780ffb06d1fd6e27791640c4687bf40c87679aab82c28b5f276a752

See more details on using hashes here.

File details

Details for the file awsenviron-0.0.7-py2-none-any.whl.

File metadata

File hashes

Hashes for awsenviron-0.0.7-py2-none-any.whl
Algorithm Hash digest
SHA256 9ebe6d7afee76f4c9b4e5910137771d63b5c166d77b00dbeba39c750a6f71ade
MD5 818d0d0aab7fdf7caac2f18eba202c00
BLAKE2b-256 b9ea251c8246fa7212e32ec9b70ee524ab482d1dcc79a6db967fa7a7eb4aa8ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page