Falcon

We will be using the Falcon web framework to build the Ops API framework. The framework in this case is referred as Ops API, owing to the operational tasks that could be performed leveraging this framework. As with any web-based framework, Falcon would ensure our simple Python scripts are exposed as RESTful APIs.

Let's look at the steps to create the web framework on our Linux (Ubuntu) server:

  1. Install the required components. The following core components are required to set up a base framework:
    • The Python installation command is as follows:
 sudo apt-get install python3.6
    • Falcon is a lightweight, easy-to-deploy Web Server Gateway Interface (WSGI). Along with Gunicorn (another lightweight server), it acts as a scalable solution ...

Get Practical Network Automation - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.