Skip to main content

Yet another unofficial Ticktick API client, it is based on ticktick-py

Project description

tickthon

Yet another unofficial Ticktick API client, it is based on ticktick-py https://pypi.org/project/ticktick-py/

Installation

pip install tickthon

Usage

from tickthon import TicktickClient

client = TicktickClient(username, password)
client.get_active_tasks()

Features

  • get_active_tasks()
  • get_completed_tasks()
  • get_deleted_tasks()
  • get_abandoned_tasks()
  • get_expense_logs()
  • get_day_logs()
  • get_task(task_id)
  • get_overall_focus_time(date)
  • get_habits()
  • complete_task(Task)
  • create_task(Task, column_id)

Task model

This packages uses a custom attrs model to store task data, it has the following attributes:

Task:

  • title: str
  • status: int, default: 0 # 0: default/open, 2: done, -1: abandoned
  • ticktick_id: str, default: ""
  • focus_time: float, default: 0.0
  • deleted: int, default: 0 # 0: not deleted, 1: deleted
  • tags: List[str], default: []
  • project_id: str, default: ""
  • timezone: str, default: ""
  • due_date: str, default: ""
  • recurrent_id: Optional[str], default: ""

Environment variables

  • TT_USER: Ticktick username
  • TT_PASS: Ticktick password
  • TICKTICK_IDS: This environment variable is a JSON string that specifies the TickTick lists and folders from which tasks will be fetched, if you don't set this environment variable all tasks will be fetched. It follows this structure:

for example:

{
  "FOLDER_IDS": {
    "folder_name-1": "folder_id",
    "folder_name-2": "folder_id",
    ...
  },
  "LIST_IDS": {
    "list_name-1": "list_id",
    "list_name-2": "list_id",
    ...
  }
}

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

tickthon-0.2.12.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

tickthon-0.2.12-py3-none-any.whl (14.7 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