Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

[DEPRECATED] A bare bones Serverless Framework project with examples for common use cases in Python.

Notifications You must be signed in to change notification settings

alexcasalboni/serverless-starter-python

Repository files navigation

[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

About

[DEPRECATED] A bare bones Serverless Framework project with examples for common use cases in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages