owenchen / python-flask-template

OpenFaaS templates for Python 2.7/3.6 with Flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

OpenFaaS templates for Python 2.7/3.6 with Flask

License:MIT License


Languages

Language:Python 56.0%Language:Dockerfile 44.0%