Python for Network Engineers


By George El. • December 2020 • Reading time: 3 minutes

In this post I will show you how to build quickly a REST API using the package FAST API The endpoints for each will be as shown First create a virtual environment and install fast api and uvicorn python3 -m venv env source env/bin/activate pip install fastapi, uvicorn Instead of putting all the endpoints in one file we will use a modular approach and use one file for the routers and one for the switches.

Use Python to Access Rest Api

By George El. • January 2019 • Reading time: 3 minutes

Click the button get weather The above is in javascript but we will get the same output using python requests library. The code is only a few lines. We will use the openweathermap api from You have to register first in order to get the api key by email.