[p4] (no subject)

Lewis Baker lewis at isite3d.com.au
Thu Sep 7 19:24:48 PDT 2006


Hi Harish,

harish A.S. wrote:
> May i know the ADVANTAGES of using PYPERFORCE?
>   I have installed pyperforce and python and ofcourse perforce! 

The primary advantage of using PyPerforce is to make it easier to write
automation scripts that interact with a Perforce version control system
using the Python language. It takes care of many of the low-level
details that you would otherwise need to implement in scripts yourself
such as parsing and updating Perforce forms.

However, until you find yourself needing to write such automation
scripts there is really no reason to use PyPerforce (or any other
Perforce API for that matter). The existing command line (p4) and gui
(p4v, p4win) tools are very functional end-user tools and make a great
starting point for using Perforce.

If you do find yourself needing to automate Perforce operations (which
is likely if you use Perforce for a reasonable time) then start by
choosing your favourite scripting language (Python, Perl, Ruby, etc) and
use the corresponding Perforce API.

>   ARE THERE ANYEXTRA ADMIN FACILTIES WITH PYPERFORCE....
>   How can i execute the commands from the command
>   prompt......etc....should  i know python?or is there any other way

PyPerforce is simply a Python module/library that you can use to write
scripts. The scripts you write can then be run from the command prompt,
however PyPerforce doesn't provide a command interface itself.

Have a look at the PyPerforce documentation and tutorials to get more of
an idea about how it is used and what it can be used for.

http://pyperforce.sourceforge.net/doc/

Hope that helps you out.

Cheers,
Lewis.

-- 
Lewis Baker                                               I-SiTE
Software Engineer                               3D Laser Imaging
Email  : lewis at isite3d.com.au         http://www.isite3d.com.au/


More information about the perforce-user mailing list