Overview
Python wrapper for NextCloud’s API.
The lib tends to support most common features i.e. :
User provisioning
OCS Share
WebDAV (files)
Tags
Activity app
Notifications app
LDAP configuration
Capabilities
Group Folders
Tested with :
NextCloud 14, python 3.7 (automated test)
NextCloud 20, python 2.7
NextCloud 20, python 3.6
The main lines :
NextCloud(URL, auth=…) provide you a connection manager. You can use it with with … as nxc: to open a session.
The session is the connection object that make the requests.
The requests are initiated by a requester associated to an API wrapper.
API wrappers are the definition of how to use the NextCloud REST API : it provide functions that will be attached to the NextCloud object.
Functions can return : - Response object with attributes is_ok, data. If is_ok is False, you can use get_error_message. - Data objects (File, Tag…) or None.
Data objects are useable as dict object or with attribute. They provide operations. If the operation fails, you’ll get an exception.
Install
# use 'pip3' for python3 or 'python -m pip' instead of pip
pip install nextcloud-api-wrapper
# the associated python lib is nammed 'nextcloud'
# beware the conflicts
Fork Changes
This version is a fork (mainly refactoring, fixes and optimization) of nextcloud-API .
Testing
The integration to Travis and CodeCov provided by the original repository are lost.
There is now 2 branches develop and main. All tests are validated using test.sh docker before merging develop to main.
Documentation
The integration with readthedoc.io is lost. You still can build the documentation with Sphinx source.
Looking at the code docstrings is recommended. Significative changes will be reported in CHANGELOG.md file.
Too, you can check out the original nextcloud API documentation, but the use could have changed.
Contributing
Pull Request
According to the testing procedure, you shall fork and PR on branch develop.
Metadata
Release files for nextcloud-api-wrapper 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nextcloud-api-wrapper-0.2.3.tar.gz | 35.8 kB | Without provenance | Details for nextcloud-api-wrapper-0.2.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nextcloud_api_wrapper-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for nextcloud_api_wrapper-0.2.3-py3-none-any.whl |
| nextcloud_api_wrapper-0.2.3-py2-none-any.whl | Python 2 | none | any | Details for nextcloud_api_wrapper-0.2.3-py2-none-any.whl |
Total release size: 149.8 kB
Release files / nextcloud-api-wrapper-0.2.3.tar.gz
| Download URL | nextcloud-api-wrapper-0.2.3.tar.gz |
|---|---|
| Size | 35.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30ac51f86a7a00506a376034f804cc1fe70385496443fb75de6064d7c1f97a6e
|
|
BLAKE2b-256 checksum How to use checksums |
7ae9cc5f0495f829d3954d116c9c7c3244e4dab67a8d423b3ee03ff8ec268bbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
|
Release files / nextcloud_api_wrapper-0.2.3-py3-none-any.whl
| Download URL | nextcloud_api_wrapper-0.2.3-py3-none-any.whl |
|---|---|
| Size | 57.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1899650073f1428cb12837bd61b0accd95ca54612752c42f901d7bd49deeea75
|
|
BLAKE2b-256 checksum How to use checksums |
2f984bc095753ba11f0c31e3be3eb47ded593f5fdafa04f73831fe791cfcee45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
|
Release files / nextcloud_api_wrapper-0.2.3-py2-none-any.whl
| Download URL | nextcloud_api_wrapper-0.2.3-py2-none-any.whl |
|---|---|
| Size | 57.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
a30e66e4fbe451692c050c15b2dc6130df5547bd53e29db548d8141303c03e48
|
|
BLAKE2b-256 checksum How to use checksums |
354b64c695886f8e39c823a2bc7b9b969a4e5fe8525e85dea27cbdaf0e2e4b43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
|
Security for nextcloud-api-wrapper 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.