[p4] PyPerforce 0.3a1 released

Wesley Hunt weshunt at fusemail.com
Tue Sep 26 09:04:38 PDT 2006


I just noticed the earlier confusion over what PyPerforce is, and why 
non-scripters wouldn't need it. However, I wanted to put in a non-biased 
plug for scripters who DO need it. If you've ever used the Python API, I 
would highly recommend switching to PyPerforce. It gives you access to 
low-level control while not getting in your way if you are just performing 
the most common tasks.

If you do P4 scripting and know Python (or even if you don't--I learned 
Python while trying out this API), I highly recommend it. Great job, Lewis!

-Wes


----- Original Message ----- 
From: "Lewis Baker" <lewis at isite3d.com.au>
To: "Perforce User List" <perforce-user at perforce.com>
Sent: Tuesday, August 01, 2006 1:33 AM
Subject: [p4] PyPerforce 0.3a1 released


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi All,
>
> I just wanted to let you know that a new release of PyPerforce is now
> available at http://pyperforce.sourceforge.net/.
>
> PyPerforce is a Python interface for the Perforce API that lets you
> connect to a Perforce server and execute Perforce commands directly from
> Python code. Results are automatically parsed into Python objects such
> as strings, lists, tuples and dictionaries, making it easy to process
> command output.
>
> The 0.3a1 release introduces native support for Python's unicode string
> type. Commands now able to accept unicode strings as arguments and input
> and results from Unicode Perforce servers are now returned in unicode
> strings. A big thanks to Perforce support for their guidance on this.
>
> Some new classes, Change and Counter, have been added to make it easier
> to manipulate Perforce changelists and counters respectively.
>
> For example:
> #!python
> from perforce import *
> p4 = Connection(port='perforce:1666')
> p4.connect()
>
> # Open the default changelist on the current client
> change = Change(p4)
>
> # Update some details and submit
> change['Description'] = """Fixed a bug in the foo module."""
> change['Files'] = ["//depot/foo/foo.c"]
> change.submit()
> change.refresh()
> print "Submitted foo.c in change %s" % change['Change']
> ### End of script ###
>
> For a detailed list of changes, see the change notes available at:
> http://sourceforge.net/project/shownotes.php?release_id=435920&group_id=162781
>
> PyPerforce-0.3a1 is available for download from the project website at
> http://pyperforce.sourceforge.net/ or from PyPI.
>
> If you have setuptools installed, just run 'easy_install PyPerforce' to
> download and install the package.
>
> I hope that people find these new features useful and I look forward to
> any feedback, comments, thoughts or suggestions.
>
> Cheers,
> Lewis.
>
> - --
> Lewis Baker                                               I-SiTE
> Software Engineer                               3D Laser Imaging
> Email  : lewis at isite3d.com.au         http://www.isite3d.com.au/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.1 (MingW32)
>
> iD8DBQFEzuenVO7VYWDQ9VgRAlKOAJsEDeahfYxYRkNMYpkeiu62oILd1QCgzk4x
> MfORimTSEF34hQs13JN3f6w=
> =QVf8
> -----END PGP SIGNATURE-----
>


--------------------------------------------------------------------------------


> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> 


More information about the perforce-user mailing list