A Python Perforce package that doesn’t bring in any other packages to work

P4CMD 🌴

A Python Perforce package that doesn’t bring in any other packages to work.
Relies on p4cli installed on the system.

p4cmd

The p4cmd module holds the P4Client class that allows you to interact with the P4 server.

To instantiate a new client, you either pass it the root path of you Perforce workspace or if the “P4ROOT” system variable is set, you can use the from_env class function

from p4cmd import p4cmd

client = p4cmd.P4Client("~/nisse/projects/raw")