Skip to main content

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:

  1. Credentials — prompts for your TickTick OAuth client_id and client_secret
  2. OAuth authentication — opens your browser to complete the OAuth flow and saves the access token
  3. Sync settings — configures poll interval and socket path (sensible defaults provided)
  4. 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-modify hooks 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

Metadata

Release files for tickticksync 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tickticksync 0.1.1
File Size Uploaded
tickticksync-0.1.1.tar.gz 77.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tickticksync 0.1.1
File Interpreter ABI Platform
tickticksync-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 100.7 kB

Release files / tickticksync-0.1.1.tar.gz

Download URL tickticksync-0.1.1.tar.gz
Size 77.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d43c5f2070b4479478a7fe10dd9008d6fe9d11c4a408d5f5af887f8e3d227964
BLAKE2b-256 checksum
How to use checksums
ca8e76e6471012871c32bef52babeb92740b15e283963ff29a216654ca12e923
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.

Transparency log

Release files / tickticksync-0.1.1-py3-none-any.whl

Download URL tickticksync-0.1.1-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b472b42ef98f188312e0e9e9277cd4be1b02bbeb67d89fb5032a240881cdf53
BLAKE2b-256 checksum
How to use checksums
2864ef65c045034e9c64eabed37359eee14a0ce1d4e5e6b087edeacf5e29669e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page