Asynchronous client library for Nextcloud
Project description
nextcloud-async
Asynchronous Nextcloud Client
This module provides an asyncio-friendly interface to public NextCloud APIs.
Covered APIs
- File Management API
- User Management API
- Group Management API
- GroupFolders API
- App Management API
- LDAP Configuration API
- Status API
- Share API (except Federated shares)
- Talk/spreed API
- Notifications API
- Login Flow v2 API
- Remote Wipe API
- Maps API
APIs To Do
- Sharee API
- Reaction API
- User Preferences API
- Federated Shares API
- Cookbook API
- Passwords API
- Notes API
- Deck API
- Calendar CalDAV API
- Tasks CalDAV API
- Contacts CardDAV API
If you know of any APIs missing from this list, please open an issue at https://github.com/aaronsegura/nextcloud-async/issues with a link to the API documentation so it can be added. This project aims to eventually cover any API provided by NextCloud and commonly used NextCloud apps.
Example Usage
import httpx
import asyncio
from nextcloud_async import NextCloudAsync
nca = NextCloudAsync(
client=httpx.AsyncClient(),
endpoint='http://localhost:8181',
user='user',
password='password')
async def main():
users = await nca.get_users()
tasks = [nca.get_user(user) for user in users]
results = await asyncio.gather(*tasks)
for user_info in results:
print(user_info)
if __name__ == "__main__":
asyncio.run(main())
This project is not endorsed or recognized in any way by the NextCloud project.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nextcloud_async-0.0.7.tar.gz
(58.0 kB
view details)
Built Distribution
File details
Details for the file nextcloud_async-0.0.7.tar.gz
.
File metadata
- Download URL: nextcloud_async-0.0.7.tar.gz
- Upload date:
- Size: 58.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c1d56018bbcbf25e4f68b32e136856118013148e9898ba5713bb82818fff42e |
|
MD5 | 7e16db7ad61aa0c42f0f08fbfb000aa4 |
|
BLAKE2b-256 | 77314e2801de9c7df2d6f72758b1dd6014a116976dafcac4d35efdc7e89d9004 |
File details
Details for the file nextcloud_async-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: nextcloud_async-0.0.7-py3-none-any.whl
- Upload date:
- Size: 50.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f5078dcf85ffd5acbdd2c834ceb13b50914df382d2efb965da84b79469bcf01 |
|
MD5 | 9469102eab602cd30c8575939ca39d76 |
|
BLAKE2b-256 | af72dcb363ce7f6163c7e8535a83bf6b07044f89e798ab1187020eefa06c5a00 |