Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.42 KB

File metadata and controls

43 lines (29 loc) · 1.42 KB

python-awsenviron

Supported Versions Build Status Coverage Status PyPI version

The awsenviron reads the key, value pair from AWS Parameter Store and adds them to environment variable. This was inspired by python-dotenv and 12-factor principles.

Installation

pip install awsenviron

or

pipenv install awsenviron

Usage

awsenviron.load_from_parameter_store(path='<your-path>')

Now, you can access the variables either from system environment variable:

import os

DATABASE_URI = os.environ.get('DATABASE_URI')

Authentication

awsenviron use boto3 to authentication, click here to see the methods.