P4StreamSwitcherDocumentation

Install and Connect to Perforce

Install dependencies and sign in

You need Windows, Python 3.10 or later with Tkinter, the Perforce CLI, and P4V. Your account needs access to the target streams and permission to create and delete clients. Before starting, set P4PORT and P4USER in your Perforce environment and sign in as usual.

In P4V, make sure you own at least one stream client with Host set to this machine and a Stream assigned.

Obtain the files from the public source repository, then install dependencies and start from the project directory:

Terminal window
python -m pip install p4python platformdirs
python Main.py

After launch, check the server and user in the status area. If the connection fails or the tool cannot find a stream client, use the checks below.

Troubleshoot the connection and stream client

  • Connection failure: check P4PORT, P4USER, login status, and server reachability.
  • No stream client detected: confirm in P4V that the client belongs to the current user, has this host, and references a Stream.

Switch a workspace for the first time