OpenFaaS templates for Python 2.7/3.6 with Flask
Clone or download
omerzamir and alexellis Increase of-watchdog version to 0.4.6
Signed-off-by: Omer Zamir <zamir98@gmail.com>
Latest commit 2bc6c67 Dec 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
template Increase of-watchdog version to 0.4.6 Dec 29, 2018
.DEREK.yml Create .DEREK.yml Sep 13, 2018
.gitignore Add Python3 flask template Apr 3, 2018
LICENSE Create LICENSE Oct 2, 2018
README.md Add Python3 flask template Apr 3, 2018

README.md

python-flask-template

Python OpenFaaS template with Flask

To try this out with either Python 2.7 or Python 3.6:

faas template pull https://github.com/openfaas-incubator/python-flask-template
faas new --list
Languages available as templates:
- python27-flask
- python3-flask

Generate a function with one of the languages:

faas new --lang python3-flask myfunction
mv myfunction.yml stack.yml

Followed by the usual flow:

faas build \
  && faas deploy
  && faas list --verbose

# Wait a couple of seconds then:

echo -n content | faas invoke myfunction