GitXplorerGitXplorer
a

serverless-starter-python

public
35 stars
6 forks
0 issues

Commits

List of commits on branch master.
Unverified
2a61b64515ad1c8b8c7e24d42d514fe9bf57c800

Added "vendored" folder for python dependencies

aalexcasalboni committed 9 years ago
Unverified
71a1ce5527c223d77e404fbdda8db2ad4523174c

refactored lib folder (with subfiles), fixed relative lib imports, add support for .os dependencies

aalexcasalboni committed 9 years ago
Unverified
04dcad60ed12654f445597f4d5f627e4d9d9ab7e

Added requirements.txt file

aalexcasalboni committed 9 years ago
Unverified
a37fa1f5fc0ed61f28dfc1bc206f6ed1cb1ed1bc

Added new "continent" function (example)

aalexcasalboni committed 9 years ago
Unverified
9682c3c05af9994d23f23945aafbe76a0cd96a5f

updated package homepage

aalexcasalboni committed 9 years ago
Unverified
1ad17bd45cc3ec72559708e59bb1a6f3b8f5d683

updated package version

aalexcasalboni committed 9 years ago

README

The README file for this repository.

[DEPRECATED] Serverless Starter

serverless

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.

Install

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

Includes

This project contains the following:

  • Multi: Multiple functions each containing a single endpoint
  • Single: A single function that uses multiple endpoints.
  • Continent: A real-world example with Python requirements and response mapping.
  • Templates: Templates are used to reduce configuraton syntax
  • REST API Parameters: The Multi/Show function endpoint gives an example of how to accept a path parameter