Falcon

Learning Falcon

2018-01-13. Category & Tags: Python, Falcon, API

A great 5-video tutorial: 35minutes on YouTube (6 tomatoes / 2.5 hours for non-stop studing by coding). Author’s Github (py2), My Github (py3).

Differences in my Github code:

  • py3, not py2
  • using on_put() to test validity of input json from client
  • using on_delete() to test params (just to test, should NOT be used in real-world)
  • using another route /test2?x=1&y=3 to test params

Usage in Nix:

pip3 install falcon gunicorn
gunicorn app:api # in the folder of app.py

Usage in Win (tested in bash sub system):

...