P4Python

Introduction

P4Python, the Python interface to the Perforce API, enables you to write Python code that interacts with a Perforce server. P4Python enables your Python scripts to:

  • Get Perforce data and forms in dictionaries and lists.

  • Edit Perforce 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).

The most recent release of P4Python is 2015.1.