This library isn't *required* for writing Python in the [serverless][sls], but
it does make your life easier by handling things like environment variables for
# all .env files are loaded into the environment
# Loads stack outputs into environment variables as `SERVERLESS_CF_[output name]`
os.getenv('SERVERLESS_STAGE') # dev
# get role ARN from default serverless CloudFormation stack
os.getenv('SERVERLESS_CF_IamRoleArnLambda') # arn:aws:iam::123456789012:....
# alternate way to read roles
outputs = serverless_helpers.load_cfn_outputs()
outputs['IamRoleArnLambda'] # arn:aws:iam::123456789012:....
This code is released under the MIT software license, see LICENSE file for
details. No warranty of any kind is included, and the copyright notice must be
included in redistributions.
*Notable exception*: `dotenv.py` is from
[python-dotenv](https://github.com/theskumar/python-dotenv) to remove
dependencies on click and ordereddict for performance/deployment size reasons.
Read the license contained in `dotenv.py` for details on its creators and
TODO: Brief introduction on what you do with files - including link to relevant help section.