P4 API for Python Documentation

P4 API for Python is a derived API for Python used to create scripts that interact with P4 Server. The derived API depends on the P4 API for C/C++.

P4 API for Python overview

Learn how to get started using P4 API for Python.

What's new

Learn about new features, enhancements, and bug fixes in P4 API for Python 2025.1.

Install P4 API for Python

Learn how to install P4 API for Python using pip or from a package.

Program with P4 API for Python

Learn how to program with P4 API for Python.

Need more help? Browse all P4 documentation to find what you need.