From the course: NetOps (DevOps for Network Engineers): Automating Networks

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Network API application example

Network API application example

- [Instructor] Let's take a look at a Python API example of application, and in the next lesson, we'll put this API application into our CI/CD pipeline. This isn't actually a skill down example from my book, "Mastering Python Networking", third edition. This is not an advertisement. I'm just saying the code is available online. So if you want to a look at a more in depth version with database authentication, you could feel free to go ahead and do that. But the example we're going to use here is a more simplified version. There are several tools we'll use. We'll use a very popular Python web framework called Flask. It's called a micro framework, means, it only includes the core functionality within the Flask package. And typically the very simple level you could use one single file to build your API front-end. We're also going to use PyYAML package. This package is used for Python to write and read YAML file. If you…

Contents