Bidirectional sync between TickTick and TaskWarrior
Project description
tickticksync
Bidirectional sync between TickTick and TaskWarrior.
A background daemon listens for TaskWarrior hook events (push path) and polls the TickTick API on a timer (pull path). SQLite tracks task mappings and last-known state for last-write-wins conflict resolution.
Requirements
- Python 3.11+
- uv
- TaskWarrior installed and configured
Install
Global install (recommended for CLI usage)
# Using uv (recommended)
uv tool install tickticksync
# Using pipx
pipx install tickticksync
Project dependency
# Using uv
uv add tickticksync
# Using pip
pip install tickticksync
From GitHub (latest development version)
uv pip install git+https://github.com/rube-de/tickticksync.git
Development
git clone https://github.com/rube-de/tickticksync.git
cd tickticksync
uv sync --dev
Setup
tickticksync init
The init command runs an interactive 4-step wizard:
- Credentials — prompts for your TickTick OAuth
client_idandclient_secret - OAuth authentication — opens your browser to complete the OAuth flow and saves the access token
- Sync settings — configures poll interval and socket path (sensible defaults provided)
- Project mappings — fetches your TickTick projects from the API and lets you map each one to a TaskWarrior project
The wizard also registers the ticktickid UDA in TaskWarrior and installs on-add/on-modify hook scripts.
If config already exists at ~/.config/tickticksync/config.toml, the wizard asks whether to reconfigure or just re-run the idempotent setup steps (UDA + hooks).
Usage
One-off sync
tickticksync sync
Daemon
tickticksync daemon start # start background sync
tickticksync daemon stop # stop the daemon
tickticksync daemon status # check if running
Status
tickticksync status # show mapped task count and last sync time
Authentication
tickticksync auth oauth # re-run the browser OAuth2 flow
tickticksync auth password # store username/password credentials in the system keyring
Managing mappings
tickticksync mapping list # show all project mappings
tickticksync mapping add # interactive: pick from TickTick projects
tickticksync mapping add --ticktick "Work" --taskwarrior "work" # non-interactive
tickticksync mapping remove "Work" # remove by TickTick project name
Example mapping list output:
TickTick Project → TaskWarrior Project
───────────────────────────────────────
Work → work
Personal → personal
(2 mappings)
Mapping
tickticksync uses explicit project mappings to control which TickTick projects sync with TaskWarrior. Each mapping pairs one TickTick project with one TaskWarrior project.
Key behavior:
- Only mapped projects are synced — unmapped TickTick projects are ignored
- Mappings are one-to-one: each TickTick project maps to exactly one TaskWarrior project (and vice versa)
- Tasks that move to an unmapped project are skipped during sync
Mappings are set up during tickticksync init (step 4) or managed afterward with tickticksync mapping add/remove.
Configuration
Config lives at ~/.config/tickticksync/config.toml:
[ticktick]
client_id = "your-client-id"
client_secret = "your-client-secret"
[auth]
method = "oauth" # "oauth" (default) or "password"
[sync]
poll_interval = 60 # seconds between full syncs
batch_window = 5 # reserved — not yet active
socket_path = "/tmp/tickticksync.sock"
queue_path = "/home/you/.local/share/tickticksync/hook_queue.json" # use absolute path; ~ is not expanded (update after init)
[mapping]
default_project = "inbox" # reserved — not yet active
[[mapping.projects]]
ticktick = "Work"
taskwarrior = "work"
[[mapping.projects]]
ticktick = "Personal"
taskwarrior = "personal"
| Section | Key | Description |
|---|---|---|
[ticktick] |
client_id, client_secret |
TickTick OAuth app credentials |
[auth] |
method |
Authentication method: "oauth" or "password" |
[auth] |
username |
TickTick username (email) for "password" auth method |
[sync] |
poll_interval |
Seconds between daemon sync cycles |
[sync] |
batch_window |
Seconds to batch hook events before syncing (reserved — not yet active) |
[sync] |
socket_path |
Unix socket path for hook-to-daemon communication |
[sync] |
queue_path |
File path for queued events when daemon is down (use absolute path; ~ is not expanded — update after init) |
[mapping] |
default_project |
Fallback TickTick project for unmapped TW tasks (reserved — not yet active) |
[[mapping.projects]] |
ticktick, taskwarrior |
One-to-one project mapping pair |
Architecture
TaskWarrior hooks ──► Unix socket ──► Daemon ──► SyncEngine
▲
poll timer ┘
│
TickTick API (concurrent project fetches)
│
SQLite state store (task mappings)
- Push path: TW
on-add/on-modifyhooks send task JSON to the daemon via Unix socket. If the daemon is down, events queue to disk and replay on next startup. - Pull path: The daemon polls TickTick on a configurable interval, fetching all projects concurrently.
- Conflict resolution: Last-write-wins based on modification timestamps.
- Field mapping: Priority levels, due dates, annotations, and checklist items are mapped between the two systems.
Development
uv sync --dev
uv run pytest
License
MIT
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
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
File details
Details for the file tickticksync-0.1.1.tar.gz.
File metadata
- Download URL: tickticksync-0.1.1.tar.gz
- Upload date:
- Size: 77.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d43c5f2070b4479478a7fe10dd9008d6fe9d11c4a408d5f5af887f8e3d227964
|
|
| MD5 |
2fe1748465058a451c7ddc926af589ab
|
|
| BLAKE2b-256 |
ca8e76e6471012871c32bef52babeb92740b15e283963ff29a216654ca12e923
|
Provenance
The following attestation bundles were made for tickticksync-0.1.1.tar.gz:
Publisher:
publish.yml on rube-de/tickticksync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tickticksync-0.1.1.tar.gz -
Subject digest:
d43c5f2070b4479478a7fe10dd9008d6fe9d11c4a408d5f5af887f8e3d227964 - Sigstore transparency entry: 1093173035
- Sigstore integration time:
-
Permalink:
rube-de/tickticksync@78994113d33031d3a59af0129bcea5f819188c8d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/rube-de
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@78994113d33031d3a59af0129bcea5f819188c8d -
Trigger Event:
release
-
Statement type:
File details
Details for the file tickticksync-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tickticksync-0.1.1-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b472b42ef98f188312e0e9e9277cd4be1b02bbeb67d89fb5032a240881cdf53
|
|
| MD5 |
f4f5a5dfac3e4e19d88a63ff4aa98179
|
|
| BLAKE2b-256 |
2864ef65c045034e9c64eabed37359eee14a0ce1d4e5e6b087edeacf5e29669e
|
Provenance
The following attestation bundles were made for tickticksync-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on rube-de/tickticksync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tickticksync-0.1.1-py3-none-any.whl -
Subject digest:
8b472b42ef98f188312e0e9e9277cd4be1b02bbeb67d89fb5032a240881cdf53 - Sigstore transparency entry: 1093173069
- Sigstore integration time:
-
Permalink:
rube-de/tickticksync@78994113d33031d3a59af0129bcea5f819188c8d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/rube-de
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@78994113d33031d3a59af0129bcea5f819188c8d -
Trigger Event:
release
-
Statement type: