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.13.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

tickthon-0.2.13-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file tickthon-0.2.13.tar.gz.

File metadata

  • Download URL: tickthon-0.2.13.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for tickthon-0.2.13.tar.gz
Algorithm Hash digest
SHA256 1b84d19c23376df81901ee754476d3a2736b42f5d76d68b1333830fef6f60b3b
MD5 e4158891bbdbe4f99442981be2cda613
BLAKE2b-256 d5f84daf2df99bddd83db9660ae16d89322ac4f0a0021298c1daa116d405ee28

See more details on using hashes here.

File details

Details for the file tickthon-0.2.13-py3-none-any.whl.

File metadata

  • Download URL: tickthon-0.2.13-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for tickthon-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ba77b879b88684277840acd06723fdfe4fe8a9928d7650b6cf9710d006515407
MD5 ac9d2669a0d448acc9b793e577c142ca
BLAKE2b-256 746602554f61ee66a51a810924902ea5d492ef6c1ae9f3f14d66cb5b0ddd410c

See more details on using hashes here.

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