Set of useful scripts and triggers in P4Python.
Most require Python 3.X to run, but can be made to use Python 2.7 if necessary.
The scripts will also need P4Python 2012.2 + to work.
changes_month_depot analysis the usage in changes and bytes of a Perforce Server.
directory_sizes list the sizes of files within a directory of Perforce
hash_database attempts to find identical files submitted several times (not lazy copies)
open_view_clients lists all clients with open views
Run the first 3 scripts against a (db only sufficient) replica, they can be very heavy on a server.
The last file is a simple client form-in trigger to prevent open views.