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
-
classmethod