July 2018
Intermediate to advanced
324 pages
8h 14m
English
Falcon is a bare-metal Python web API framework. It can be used to build microservices with very fast performance.
It is very flexible and easy to implement. It has a markable benchmark, compared to other frameworks. There are many giant organizations that are using Falcon such as Linkedin, OpenStack, RackSpace, and more. The following is a sample code snippet from Falcon's site:
# sample.pyimport falconclass QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've always been more interested in " "the future than in the past." ), 'author': 'Grace Hopper' } resp.media = quoteapi = falcon.API()api.add_route('/quote', QuoteResource())
It requires gunicorn to execute the API on the localhost ...
Read now
Unlock full access