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:
- 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 ...