API

class taskc.simple.TaskdConnection(client_cert: str = None, client_key: str = None, cacert_file=False, server=None, port: int = 53589, cacert=False, group: str = None, username: str = None, uuid: str = None)[source]
classmethod from_taskrc(taskrc='~/.taskrc', **kwargs)[source]

Build a TaskdConnection from a taskrc file

classmethod is used to allow inheritance

taskrc: configuration file for taskwarrior

kwargs: arguments to pass to the constructor of TaskdConnection

pull()[source]

Get all the tasks down from the server

Returns taskc.transaction.TaskdResponse

put(tasks)[source]

Push all our tasks to server

tasks: flat formatted taskjson according to spec

Returns taskc.transaction.TaskdResponse

recv()[source]

Parse out the size header & read the message

Returns taskc.transaction.TaskdResponse

stats()[source]

Get some statistics from the server

Returns taskc.transaction.TaskdResponse

class taskc.transaction.TaskdResponse[source]

Represents a reponse of a taskd server

data

front bit of payload

raise_for_status()[source]

Ala requests

status

alias to status_code

status_code

Status code as an int

sync_key

last bit of payload