Two-way Sync of Todoist and Taskwarrior
Go to file
2019-03-24 16:25:20 +01:00
tests Fix parse error 'every hour' -> 'hourly' recurrence 2019-01-21 20:38:19 +01:00
todoist_taskwarrior Add io.with_feedback() context manager for tasks report OK/FAILED 2019-03-24 16:25:20 +01:00
.gitignore Implement a very basic, description-only import 2018-11-07 00:50:00 +01:00
LICENSE Add LICENSE 2018-11-16 02:17:01 +01:00
README.md Update README with usage instructions 2019-01-21 23:39:31 +01:00
requirements.txt Switch to my fork for taskw until PR is merged 2018-11-16 02:13:12 +01:00
test_requirements.txt Add tests for recur 2018-11-24 15:14:15 +01:00
TODO.md Prevent reimporting duplicate tasks using a Taskwarrior UDA 2019-01-21 21:17:40 +01:00

todoist-taskwarrior

A tool for migrating Todoist tasks to Taskwarrior.

Usage

Running the tool requires that your Todoist API key is available from the environment under the name TODOIST_API_KEY. The key can be found or created in the Todoist Integrations Settings.

The main task is migrate which will import all tasks. Since Todoist's internal ID is saved with the task, subsequent runs will detect and skip duplicates:

$ python -m todoist_taskwarrior.cli migrate --help
Usage: cli.py migrate [OPTIONS]

Options:
  -i, --interactive
  --no-sync
  --help             Show this message and exit.

Using the --interactive flag will prompt the user for input for each task, allowing the task to be modified before import:

$ python -m todoist_taskwarrior.cli migrate --interactive
Task 1 of 315: Work on an open source project

tid: 142424242
name: Work on an open source project
project: Open Source
priority:
tags:
entry: 2019-01-18T12:00:00+00:00
due: 2019-01-21T17:00:00+00:00
recur: 3 days

By default, migrate will refetch all tasks from Todoist on each run. To skip this step and use the cached data without refetching, use the --no-sync flag.

Development

Testing

$ python -m pytest tests