Skip to main content

Automatically reschedule tasks in Todoist to reduce the size of the todo lists you see each day.

Project description

Release Notes Downloads Python Versions GitHub CI Status License: MIT

Todoist Task Scheduler & Filterer

I'm a heavy user of Todoist and I noticed that:

  1. If I have a smaller list of tasks to accomplish, I get through them faster.
  2. Having a large list of tasks creates 'cognitive drag' and stresses me out
  3. It takes time to look through and review long list of tasks

This tool enables you to set up rules to automatically punt tasks that don't need to get done today. This reduces the size of your todoist lists and tricks your monkey mind into getting more done. The ultimate goal for me is to get to 'inbox zero' on todoist.

This tool has helped in a big way, acting as a 'virtual assistant' in a way: automatically determining what I shouldn't see for the day. I tie this into a 'first awake' script executed by hyper focus.

Usage

Usage: todoist-scheduler [OPTIONS]

  Organizes todoist tasks based on custom rules

Options:
  --task-limit INTEGER   Total task limit for the day  [default: 20]
  --default-filter TEXT  Default todoist filter  [default: (today | overdue) &
                         !assigned to:others & !recurring]
  --filter-json TEXT     Default filter file  [default: filters.json]
  --punt-time TEXT       How far to punt a task into the future. Use todoist
                         natural language format. The special value 'jitter'
                         will generate a random date.  [default: in 2 days]
  --jitter-days INTEGER  What day range to jitter tasks across when
                         rescheduling them  [default: 14]
  --dry-run              Dry run the task updates
  --api-key TEXT         API key. Sourced from TODOIST_API_KEY as well
  --help                 Show this message and exit.

Take a closer look at the default filter:

default: (today | overdue) & !assigned to:others & !recurring

Here's what this does:

  • Only applies filters to task that are assigned to you
  • Ignores recurring tasks
  • Looks at tasks due on or before today

filters.json schema

[
  // limit defines the number of tasks you think you can complete today
  { "filter": "@writing", "limit": 2 },
  { "filter": "@research", "limit": 3 },

  // the filter text uses the todoist search syntax
  { "filter": "#House", "limit": 3 },
]

The JSON file is loaded in as JSON5 so you can add comments.

You can also override options for specific entries and reference saved/named filters:

[
  // loosen the priority filter
  { "filter": "@writing", "limit": 2, "priority": 2 },

  // reference a saved filter
  { "filter": "Communication", "limit": 3 },
]

Docker

Easiest way to use this is using the pre-built docker image. Here's an example docker-compose.yml. This uses the main.py as a cron-like entrypoint to run this script on a schedule.

Development

Run with debug logging:

LOG_LEVEL=DEBUG todoist-scheduler

Play with the Todoist API (in ipython):

from todoist_api_python.api import TodoistAPI
import os
api = TodoistAPI(os.getenv("TODOIST_API_KEY"))

Note that ipython is not included in the repo, I install all my debugging tools via this alias instead of including them in the poetry config.

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

todoist_scheduler-0.6.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

todoist_scheduler-0.6.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file todoist_scheduler-0.6.0.tar.gz.

File metadata

  • Download URL: todoist_scheduler-0.6.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure

File hashes

Hashes for todoist_scheduler-0.6.0.tar.gz
Algorithm Hash digest
SHA256 93a71f9992fdb39b52191a29075e4b4a535d881dc3c63252d6bd53b3d1d5f7cd
MD5 f701c3e99c5b6af6aac20538b5cbf114
BLAKE2b-256 f9044df9d6c9c3d81042f4a36237e11c5a6d1ff358a2322b5624171bff9d82c2

See more details on using hashes here.

File details

Details for the file todoist_scheduler-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: todoist_scheduler-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure

File hashes

Hashes for todoist_scheduler-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 294a689b1016831271082f70038ec1a7bdc8265c3bc26b39d62d4007ce951d29
MD5 aa3b0f0418e53b674a7c465d5c22b2c2
BLAKE2b-256 02f62198c447bec570c8fdf6ca0ab42283afc43bb3eda6357a9a04f894f12ba6

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