[owncloud-devel] Python client lib for ownCloud

Steffen Lindner mail at steffen-lindner.de
Mon Apr 28 09:49:13 GMT 2014


Hi,

> Welcome to your PRs :-)
> 

Will do a Python Egg as soon as i find time.

> I'm not familiar with pip yet but will look into it once I find more
> time for this.
> Would also be good to have a similar library in Ruby, then it could be
> used to setup ownCloud for testing in the owncloud-acceptance test and
> cucumber :-)
> 

Lately i worked again with robotframework, i think its the better tool
(and more supported/used). Maybe we should bury Cucumber/Capybara, but
its a topic for a sprint / dev-days.

Cheers,
Steffen

> 
> On 04/28/2014 10:54 AM, Steffen Lindner wrote:
>> Hi Vincent,
>>
>> nice! I wrote something similar month ago (but not that feature rich and
>> coupled into something).
>>
>> I will try to refactor and add the stuff to your lib.
>>
>> Thanks for sharing!
>>
>> Greets,
>> Steffen
>>
>> PS: Would be cool to have this lib "pip installable" and on pypi.
>>
>> On 28.04.2014 10:12, Vincent Petry wrote:
>>> Hello,
>>>
>>> During my holidays I couldn't resist to do a bit of Python programming,
>>> so I made this Python library that wraps some of the ownCloud API:
>>>
>>> https://github.com/PVince81/pyocclient
>>>
>>> This could be useful for:
>>> - writing Python/Django apps that interact with ownCloud
>>> - scripting with Python: for example backup scripts, auto-upload pics
>>> from a webcam, etc.
>>> - testing the ownCloud API :-)
>>>
>>> Here are the current features:
>>> - basic file operations like getting a directory listing, file
>>> upload/download, directory creation, etc
>>> - read/write file contents from strings
>>> - upload with chunking and mtime keeping
>>> - upload whole directories
>>> - directory download as zip
>>> - share a file with public link using the OCS Share API
>>> - store app data as key/values using the privatedata OCS API
>>>
>>> One part that is currently missing is better error handling (throwing
>>> exceptions for 403, 404, etc).
>>> It is already usable but needs more testing against all ownCloud
>>> versions (I only tested against OC 6.0.2 and OC 7 pre-alpha)
>>>
>>> It would be cool/useful to have more such libraries in most languages to
>>> lower the barrier of entry for people wanting their (external) apps to
>>> interact with ownCloud in some way.
>>>
>>> Note: while looking for a Python lib for ownCloud I also found this one
>>> which rather seems to be a wrapper around csync:
>>> https://pypi.python.org/pypi/pyOwnCloud/0.3
>>>
>>> Cheers,
>>>
>>> Vincent
>>>
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at owncloud.org
>>> http://mailman.owncloud.org/mailman/listinfo/devel
>>>
>> _______________________________________________
>> Devel mailing list
>> Devel at owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/devel
> 
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel
> 


More information about the Devel mailing list