platypush.backend.todoist

class platypush.backend.todoist.TodoistBackend(api_token: str = None, **kwargs)[source]

This backend listens for events on a remote Todoist account.

Requires:

  • todoist-python (pip install todoist-python)
  • websocket-client (pip install websocket-client)

Triggers:

__init__(api_token: str = None, **kwargs)[source]
Parameters:
  • bus – Reference to the bus object to be used in the backend
  • poll_seconds – If the backend implements a loop method, this parameter expresses how often the loop should run in seconds.
  • kwargs – Key-value configuration for the backend
run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.