![]() ![]() To build the documentation, you will need to install Sphinx and docutil. You might also need to install the unittest-data-provider package: $ pip install unittest-data-provider It should point to a running ownCloud instance to test against. There is a config file example called “owncloud/test/config.py.sample”. To run the unit tests, create a config file called “owncloud/test/config.py”. get_file ( '/sharedfile.zip', 'download/destination/sharedfile.zip' ) Running the unit tests from_public_link ( public_link, password = folder_password ) oc. drop_file ( 'myfile.zip' )Įxample for downloading a file from a public shared folder with password: import owncloud public_link = '' folder_password = 'secret' oc = owncloud. get_link ()Įxample for uploading a file to a public shared folder: import owncloud public_link = '' oc = owncloud. share_file_with_link ( 'testdir/remotefile.txt' ) print "Here is your link: " + link_info. put_file ( 'testdir/remotefile.txt', 'localfile.txt' ) link_info = oc. Manual installation of development version with git: $ pip install requestsĮxample for uploading a file then sharing with link: import owncloud oc = owncloud. Requests module (for making HTTP requests)Īutomatic installation with pip: $ pip install pyocclient Store app data as key/values using the privatedata OCS API Share a file/directory with another user or groupĬheck if a file/directory is already shared ![]() version, host, URL, etc.)īasic file operations like getting a directory listing, file upload/download, directory creation, etc ![]() Retrieve information about ownCloud instance (e.g. Supports connecting to ownCloud 8.2, 9.0, 9.1 and newer. See the ownCloud homepage for more information about ownCloud. That provides functions to abstract away HTTP calls for various ownCloud APIs. Please note that this is not a sync client implementation but a library This pure python library makes it possible to connect to an ownCloud instanceĪnd perform file, share and attribute operations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |