TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

Labelbox / python-flask-template

OpenFaaS templates for Python 2.7/3.6 with Flask

0 1 Language: Python License: MIT Updated: 2y ago

README

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
0 AIs selected
Clear selection
#
Name
Task