A Nextcloud Tasks API wrapper with some useful examples for CLI
Project description
Nextcloud Tasks API
A Nextcloud Tasks API wrapper with some useful examples for CLI
from nextcloudtasks import *
nextcloud = NextcloudTask("foo.bar.org:443/remote.php/dav/calendars/foobar/", "myList")
nextcloud.connect("username", "password")
nextcloud.printTODOs("summary,categories,created,priority")
nextcloud.close()
It is a custom API wrapper that is not developed nor maitained by Nextcloud.
Installation
pip install nextcloudtasks
Examples
The following example is a tool that manages the a Nextcloud TODO list from the command line. It can be found in examples
.nc-tasks.rc
[DEFAULT]
url=your.nextclouddomain.foo:443/remote.php/dav/calendars/youruser/
user=youruser
password=yourpassword
list=yourlist
nc-tasks.py:
Welcome to Nextcloud tasks CLI. Type help or ? to list commands.
(Nextcloud Tasks) ?
Documented commands (type help <topic>):
========================================
add complete delete exit list nextcloud print_all
close connect edit help load print
(Nextcloud Tasks) load
(Nextcloud Tasks) print
+---------+--------------------------------------+------------+----------+
| SUMMARY | UID | RELATED-TO | PRIORITY |
+---------+--------------------------------------+------------+----------+
| Task 2 | d4910d0e-e82f-474c-8b96-39d51a078820 | None | 0 |
| Task 3 | e823277e-08da-4e38-a98e-67f6e0301eb3 | None | 0 |
| Task 1 | de92dbda-afba-4bf3-b924-57b4db08f3f2 | None | 3 |
+---------+--------------------------------------+------------+----------+
Hacking
Pull requests are welcome.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nextcloudtasks-0.1.0.tar.gz
(20.4 kB
view details)
Built Distribution
File details
Details for the file nextcloudtasks-0.1.0.tar.gz
.
File metadata
- Download URL: nextcloudtasks-0.1.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db16ad2ef3bf1937c3fc0a564d4ca4d6853cee54e0eaa327b1098e01494e2650 |
|
MD5 | a721f227677bf5088b1fddbf54cdf49b |
|
BLAKE2b-256 | 4154d0d1609d0eadb6d9821a5a88394aa66db8756fa470be5de6d5310de35996 |
File details
Details for the file nextcloudtasks-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: nextcloudtasks-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a43fd6bc76da5f4f4dc97bd67586d318286e8d4206c53409469222c802bb370e |
|
MD5 | 0a9c42d93c988bc7410961c4d868eda1 |
|
BLAKE2b-256 | dbeb33d7481d1d99038008f00d6c1a5f2b9149368d97cbe8e844ac01414936fd |