Skip to main content

A Nextcloud Tasks API wrapper with some useful examples for CLI

Project description

Nextcloud Tasks API

Python package

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

GPL

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

nextcloudtasks-0.1.0.tar.gz (20.4 kB view hashes)

Uploaded Source

Built Distribution

nextcloudtasks-0.1.0-py3-none-any.whl (19.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page