Pure python Perforce API
Project description
Pure python perforce API
Free software: BSD license
Documentation: https://python-perforce.readthedocs.org.
Features
Pythonic api to Perforce
Pure python, no compiled extension
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.1.0 (2014-10-16)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
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.1.0.zip
(27.8 kB
view details)
File details
Details for the file python-perforce-0.1.0.zip.
File metadata
- Download URL: python-perforce-0.1.0.zip
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
363d90d02a1c2dc031198949eb76ac21293bf123fb4de33fb4c910ed55f43651
|
|
| MD5 |
32ec9c346b8dd87992139e98aa947b97
|
|
| BLAKE2b-256 |
56aa48c83a3ab6c262ca01c8d15c7ac31357b64f8c93c8503388d921e0e69f45
|