[DEPRECATED] A bare bones Serverless Framework project with examples for common use cases in Python.
A bare bones Serverless Framework project with examples for common use cases in Python.
[DEPRECATED] This serverless Python starter is deprecated. The new official python sample is here.
Make sure you have the Serverless Framework installed and you’re using Node.js v4.0+.
npm install serverless -g
Install the project using Serverless:
serverless project install serverless-starter-python
Install project dependencies via npm:
npm install
Install Python dependencies via pip:
pip install -t restApi/vendored/ -r restApi/requirements.txt
or via virtualenv:
virtualenv myenv
source myenv/bin/activate
pip install -r restApi/requirements.txt
cp -R myenv/lib/python2.7/site-packages/* restApi/vendored/
Deploy your functions and endpoints:
serverless dash deploy
This project contains the following: