python code for perforce print downloaded file names on screen while it is downloading

Job ID: 32988458

Budget: $30 – $250 CAD

python code for perforce print downloaded file names on screen while it is downloading

I need it work on Linux - stand alone python code
Instead of printing ALL files names after downloading on screen, print downloaded file names on screen while it is downloading.
for example after each 10 files downloaded -> print names

simple python code for perforce how to synch with reporting progress

IF YOU KNOW HOW TO DO IT IS ~40 LINE OF CODE

some help for you

https://github.com/perforce/p4transfer/blob/main/P4Transfer.py#L1200

CUSTOMIZE https://github.com/perforce/p4transfer

https://www.perforce.com/manuals/p4python/Content/P4Python/python.classes.html#P4.Outpu

https://www.perforce.com/manuals/p4python/Content/P4Python/python.p4_outputhandler.html

http://ftp.perforce.com/perforce/r14.2/doc/user/p4pythonnotes.txt

#317619 (Bug #42251) *
P4Python supports a callback interface by providing a
P4.handler attribute. Set P4.handler to an instance of a
subclass of P4.OutputHandler to enable callbacks.
When a handler is defined, P4Python will invoke the handler
for every response it receives from the Perforce Server
immediately instead of collecting all results together in
an array first. This can be used to make applications more
scalable and more responsive if large results are expected.
See the documentation for details on the OutputHandler class

https://www.slideshare.net/perforce/transferring-changes-between-perforce-servers
slides 22 and 23
Related categories: Python Network Administration