Skip to main content

Pure python Perforce API

Project description

===============================
Python Perforce
===============================

Pure python perforce API

* Free software: MIT license
* Documentation: https://python-perforce.readthedocs.org.

Features
--------

* Pythonic api to Perforce
* Pure python, no compiled extension

Installation
------------

::

pip install python-perforce

Usage
-----

>>> from perforce import connection
>>> p4 = connection.Connection()
>>> revisions = p4.ls('//depot/path/to/file.txt')
>>> print(revisions)
[<Revision 1: file.txt>]
>>> p4.ls('//depot/path/....txt')
[<Revision 1: file.txt>, <Revision 2: foo.txt>]
>>> cl = p4.findChangelist('my description')
>>> with cl:
... cl.append(revisions[0])
... p4.add('path/to/add.txt', cl)
>>> cl.description
'my description'
>>> cl.description = 'something else'
>>> cl.submit()




History
-------

0.3.3 (2015-10-16)
-----------------

* Corrected the way the error levels were being handled
* Added more documentation
* Connection will no longer fail if any of the paramter were incorrect, use Connection.status() to check the status of the connection

0.1.0 (2014-10-16)
---------------------

* First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-perforce-0.3.3.zip (34.7 kB view details)

Uploaded Source

File details

Details for the file python-perforce-0.3.3.zip.

File metadata

  • Download URL: python-perforce-0.3.3.zip
  • Upload date:
  • Size: 34.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-perforce-0.3.3.zip
Algorithm Hash digest
SHA256 4e7077eeba46d1c9db9ee5c811f45f3ff102f9a3b101612daceb653e2ef2dd07
MD5 47fd113c529ccf6c911a1802314e22b8
BLAKE2b-256 84dbdac3890a1027a62d2f9b2a0f87e1313a533360c973474d63b710c5547251

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page