{ "info": { "author": "Vincent Petry", "author_email": "pvince81@owncloud.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==================================\nPython client library for ownCloud\n==================================\n\n.. image:: https://travis-ci.org/owncloud/pyocclient.svg?branch=master\n :target: https://travis-ci.org/owncloud/pyocclient\n\nThis pure python library makes it possible to connect to an ownCloud instance\nand perform file, share and attribute operations.\n\nPlease note that this is **not** a sync client implementation but a library\nthat provides functions to abstract away HTTP calls for various ownCloud APIs.\n\nSee the `ownCloud homepage `_ for more information about ownCloud.\n\nFeatures\n========\n\nSupports connecting to ownCloud 8, 9 and newer.\n\nGeneral information\n-------------------\n\n- retrieve information about ownCloud instance (e.g. version, host, URL, etc.)\n\nAccessing files\n---------------\n\n- basic file operations like getting a directory listing, file upload/download, directory creation, etc\n- read/write file contents from strings\n- upload with chunking and mtime keeping\n- upload whole directories\n- directory download as zip\n\nSharing (OCS Share API)\n-----------------------\n\n- share a file/directory via public link\n- share a file/directory with another user or group\n- unshare a file/directory\n- check if a file/directory is already shared\n- get information about a shared resource\n- update properties of a known share\n\nApps (OCS Provisioning API)\n---------------------------\n\n- enable/disable apps\n- retrieve list of enabled apps\n\nUsers (OCS Provisioning API)\n----------------------------\n\n- create/delete users\n- create/delete groups\n- add/remove user from groups\n\nApp data\n--------\n\n- store app data as key/values using the privatedata OCS API\n\nRequirements\n============\n\n- Python >= 2.7 or Python >= 3.5\n- requests module (for making HTTP requests)\n\nInstallation\n============\n\nAutomatic installation with pip:\n\n.. code-block:: bash\n\n $ pip install pyocclient\n\nManual installation of development version with git:\n\n.. code-block:: bash\n\n $ pip install requests\n $ git clone https://github.com/owncloud/pyocclient.git\n $ cd pyocclient\n $ python setup.py install\n\nUsage\n=====\n\nExample for uploading a file then sharing with link:\n\n.. code-block:: python\n\n import owncloud\n\n oc = owncloud.Client('http://domain.tld/owncloud')\n\n oc.login('user', 'password')\n\n oc.mkdir('testdir')\n\n oc.put_file('testdir/remotefile.txt', 'localfile.txt')\n\n link_info = oc.share_file_with_link('testdir/remotefile.txt')\n\n print \"Here is your link: \" + link_info.get_link()\n\nRunning the unit tests\n======================\n\nTo run the unit tests, create a config file called \"owncloud/test/config.py\".\nThere is a config file example called \"owncloud/test/config.py.sample\". All the\ninformation required is in that file. \nIt should point to a running ownCloud instance to test against.\n\nYou might also need to install the unittest-data-provider package:\n\n.. code-block:: bash\n\n $ pip install unittest-data-provider\n\nThen run the script \"runtests.sh\":\n\n.. code-block:: bash\n\n $ ./runtests.sh\n\nBuilding the documentation\n==========================\n\nTo build the documentation, you will need to install Sphinx and docutil.\nThen run the following commands:\n\n.. code-block:: bash\n\n $ sphinx-apidoc -e -f -o docs/source owncloud/ owncloud/test\n $ cd docs\n $ make html\n\nYou can then find the documentation inside of \"doc/build/html\".\n\n\nContributors\n============\n\nContributors\n============\n\n* Vincent Petry \n* Steffen Lindner \n* Soal \n* Bruno Santeramo \n* jennifer \n* Sergio Bertol\u00edn \n* Alessandro Cosentino \n* Mike \n* Joas Schilling \n* Individual IT Services \n* Juan Pablo Villaf\u00e1\u00f1ez \n* Simon Vigneux \n* Roeland Jago Douma \n* Erik Pellikka \n* Florian Zierer \n\nChangelog\n=========\n\n0.4\n---\n\n- Some code cleanup removing needless if statements [jamescooke]\n- Remove old session_mode [PVince81]\n- Set Depth to 0 in file_info call [PVince81]\n- Make subclassing of Client event easier with protected methods [bobatsar]\n\n0.3\n---\n\n- Make subclassing of Client easier [bobatsar]\n- Add Depth param for recursive listing [bobatsar]\n- Add shared_with_me parameter to get_shares [bobatsar]\n- Link variable is now called url inside of shareinfo [SergioBertolinSG]\n- Python3 support [ethifus] [Blizzz]\n\n0.2\n---\n\n- Webdav COPY support [individual-it]\n- Added API for federated sharing [nickvergessen]\n- Fix login issue in case of failed login [individual-it]\n- Added function to get capabilities [SergioBertolinSG]\n- Added subadmin APIs for provisioning API [svigneux]\n- Tests for provisioning API [individual-it]\n- Added provisioning API functions [jennifer]\n- Code cleanup / PEP8 formatting [jennifer]\n- Added status check function [soalhn]\n- Added share API functions [soalhn] [SergioBertolinSG]\n- Travis integration [Gomez]\n- Added session handling workaround for OC 5 [PVince81]\n- Fixed many issues related to unicode path names [PVince81]\n- Client now works properly on Windows [PVince81]\n\n0.1\n---\n\n- Make python egg [PVince81]\n- Initial release [PVince81]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/owncloud/pyocclient/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "pyocclient", "package_url": "https://pypi.org/project/pyocclient/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyocclient/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/owncloud/pyocclient/" }, "release_url": "https://pypi.org/project/pyocclient/0.4/", "requires_dist": null, "requires_python": null, "summary": "Python client library for ownCloud", "version": "0.4" }, "last_serial": 2599136, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "337fcaad3bcebc19f52c811df1666c9b", "sha256": "b3505e4973bfadda11f9f5d426018f9ea3a373c3ef47b77324ed4f88f195ff43" }, "downloads": -1, "filename": "pyocclient-0.1.tar.gz", "has_sig": false, "md5_digest": "337fcaad3bcebc19f52c811df1666c9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11749, "upload_time": "2014-08-19T21:02:13", "url": "https://files.pythonhosted.org/packages/ed/77/bb7f285ebde345252a1e91476bdd4d64ed01d07b4b86a0680d6c7526e625/pyocclient-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6799e17014bf79096bc59806b6fd2c6a", "sha256": "917c926e6d07c263dc65b9bdd5a4103bff8854a7e6fc68ac08255002443abf67" }, "downloads": -1, "filename": "pyocclient-0.2-py2.7.egg", "has_sig": true, "md5_digest": "6799e17014bf79096bc59806b6fd2c6a", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 49052, "upload_time": "2016-05-21T17:14:21", "url": "https://files.pythonhosted.org/packages/d0/ef/867db803ffa746e0f3da9c6b20f10d1cca31bcff3079efe1c15cba111407/pyocclient-0.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "702f831c082644cab05822a346e6a983", "sha256": "0e43229380605b3a14383a02c4ff827a4e9aa610002afb83382ac5fa8381a182" }, "downloads": -1, "filename": "pyocclient-0.2.tar.gz", "has_sig": true, "md5_digest": "702f831c082644cab05822a346e6a983", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23382, "upload_time": "2016-06-27T12:55:48", "url": "https://files.pythonhosted.org/packages/30/9e/082ff1f835def9286701dc64e1eb8f37d35ef76493a5d8f3eb410cb60828/pyocclient-0.2.tar.gz" } ], "0.2rc1": [], "0.2rc2": [ { "comment_text": "", "digests": { "md5": "3ccb5399e872892621e740f4d794d956", "sha256": "cde73f5b440f3aabc94130cb5f39ed4331005689bc8797ea9b470c6fc6924345" }, "downloads": -1, "filename": "pyocclient-0.2rc2-py2.7.egg", "has_sig": true, "md5_digest": "3ccb5399e872892621e740f4d794d956", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 49056, "upload_time": "2016-05-06T16:20:17", "url": "https://files.pythonhosted.org/packages/05/28/d9313a47681b2d7518c08fe6893b26b5698aabfcbc5afe99d2c20482e418/pyocclient-0.2rc2-py2.7.egg" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f9d6b1a655369f4eb973186dd5f83647", "sha256": "87cd66ee97411cf2760888612cf7de022cd0e6e6c5e565a58d71d71e4b14f43c" }, "downloads": -1, "filename": "pyocclient-0.3-py2.7.egg", "has_sig": false, "md5_digest": "f9d6b1a655369f4eb973186dd5f83647", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 50315, "upload_time": "2016-11-21T17:58:01", "url": "https://files.pythonhosted.org/packages/e4/37/ac44346a4c034558a9def7118151ff648e739fe883b2f2843df85b3bc1a7/pyocclient-0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "2022be26e937cb5ef0f54d15eab90adf", "sha256": "29a47f6b7cf5048aa9124c70e30fbe28ed76b85539fca0070db6e1a0f3512f91" }, "downloads": -1, "filename": "pyocclient-0.3.tar.gz", "has_sig": false, "md5_digest": "2022be26e937cb5ef0f54d15eab90adf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24080, "upload_time": "2016-11-22T09:38:20", "url": "https://files.pythonhosted.org/packages/4c/02/46d5d8374b06c52b1259e457fbdf17db384771c96ea92c2ac724cf6695b1/pyocclient-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "a36ec808f19a076b63539db08e6edf91", "sha256": "d8604f32cf10497a06e57b163b5f9c9bbe2e874a3606c39beeb1453133d563a6" }, "downloads": -1, "filename": "pyocclient-0.4.tar.gz", "has_sig": true, "md5_digest": "a36ec808f19a076b63539db08e6edf91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24285, "upload_time": "2017-01-26T05:25:11", "url": "https://files.pythonhosted.org/packages/28/39/439638bc21fc958859f98c432823bd6127eb1dfc93962fc7c67fa0f749cc/pyocclient-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a36ec808f19a076b63539db08e6edf91", "sha256": "d8604f32cf10497a06e57b163b5f9c9bbe2e874a3606c39beeb1453133d563a6" }, "downloads": -1, "filename": "pyocclient-0.4.tar.gz", "has_sig": true, "md5_digest": "a36ec808f19a076b63539db08e6edf91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24285, "upload_time": "2017-01-26T05:25:11", "url": "https://files.pythonhosted.org/packages/28/39/439638bc21fc958859f98c432823bd6127eb1dfc93962fc7c67fa0f749cc/pyocclient-0.4.tar.gz" } ] }