Pure Python Perforce API

This is what i’ve got so far. It shoudl do most of the basic stuff: add, checkout, revert, submit. There are some others, but not as complete as the p4api module. However this one should feel a lot more pythonic, if not, please let me know :slight_smile:

The issue im facing now is when a revision removes itself from a changelist, there is a break in communication. I havent had time to find a good solution to this yet.

Anyhow, any thoughts or suggestions are more than welcome!

cool stuff!

Thanks!

pypi: https://pypi.python.org/pypi/python-perforce/0.1.0
Docs https://python-perforce.readthedocs.org/en/latest/

If you guys have time to run it through your pipelines, I’d appreciate real-world feedback on where its falling short or why you’d rather stick with P4.pyd

Thanks

Will try to poke. You know what would be really cool is a query-composition framework like http://peewee.readthedocs.org/en/latest/peewee/querying.html

Nice! I’ve got a mountain of scripts that use p4.pyd, I’ll try dropping this in to a few this week

Hey TheMaxx, I gave this a whirl and it works, except that it doesn’t handle multi-line descriptions for changelists. We are blocked by the server if we don’t supply specific tokens with a newline. When I have time I’ll see if I can’t fix the issue, but I suspect it’s simply formatting the input description.

awesome, thanks for the catch. Yeah telling p4 you were “done” with the new lines was a pain. I’ll see if i can make that a little better.

Other than that, how goes it? I’ve made a bunch of improvements in 0.2.3

0.2.4 supports multiline descriptions