Helix Core P4Python Developer Guide (2020.1)

P4Python

Introduction

P4Python is a derived API, it is the Python interface to the Helix C/C++ API, see Helix Core C/C++ Developer Guide. P4Python enables you to write Python code that interacts with a Helix Core server.

P4Python enables your Python scripts to:

  • Get Helix server data and forms in dictionaries and lists.
  • Edit Helix server forms by modifying dictionaries.
  • Provide exception-based error handling and optionally ignore warnings.
  • Issue multiple commands on a single connection (performs better than spawning single commands and parsing the results).