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
Release history Release notifications | RSS feed
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.14.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tickthon-0.2.14-py3-none-any.whl
(14.7 kB
view details)
File details
Details for the file tickthon-0.2.14.tar.gz.
File metadata
- Download URL: tickthon-0.2.14.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e44e2d75f2f2db826e366c96c058658edd5f1a216cb34afe8632c579ef84b6ff
|
|
| MD5 |
b9883d9b8225c9c7e9b5723d341f18cb
|
|
| BLAKE2b-256 |
42e5f196502444e5c4f1cb60bd5d37c1be5a49c5d96194126263e4b41bb4ca13
|
File details
Details for the file tickthon-0.2.14-py3-none-any.whl.
File metadata
- Download URL: tickthon-0.2.14-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eae253e09dd14294d88614108934c66e8f2c7c9635166e3a1d839bc4094b9a62
|
|
| MD5 |
e553a3243eba2478d91bbef03ef79778
|
|
| BLAKE2b-256 |
aabadace4931ef09c583a90672edc69493de6ac03c9ecea7dbb568ca887aaf5f
|