todoist-scheduler


Nametodoist-scheduler JSON
Version 0.5.4 PyPI version JSON
download
home_pagehttps://github.com/iloveitaly/todoist-scheduler
SummaryAutomatically reschedule tasks in Todoist to reduce the size of the todo lists you see each day.
upload_time2024-02-19 20:40:05
maintainer
docs_urlNone
authorMichael Bianco
requires_python>=3.10,<4.0
licenseMIT
keywords todoist scheduler task management
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Release Notes](https://img.shields.io/github/release/iloveitaly/todoist-scheduler)](https://github.com/iloveitaly/todoist-scheduler/releases) [![Downloads](https://static.pepy.tech/badge/todoist-scheduler/month)](https://pepy.tech/project/todoist-scheduler) [![Python Versions](https://img.shields.io/pypi/pyversions/todoist-scheduler)](https://pypi.org/project/todoist-scheduler) ![GitHub CI Status](https://github.com/iloveitaly/todoist-scheduler/actions/workflows/build_and_publish.yml/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

# Todoist Task Scheduler & Filterer

I'm a heavy user of [Todoist](http://mikebian.co/todoist) and I noticed that:

1. If I have [a smaller list of tasks to accomplish](https://mikebian.co/improve-motivation-and-focus-with-small-contexts/), 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](https://mikebian.co/hyper-focus).

## Usage

```text
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:

```text
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

```json5
[
  // 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](https://json5.org) so you can add comments.

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

```json5
[
  // 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](/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:

```shell
LOG_LEVEL=DEBUG todoist-scheduler
```

Play with the Todoist API (in `ipython`):

```python
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](https://github.com/iloveitaly/dotfiles/blob/e41a309b0ca1f5099bc6d902d0956ba0fc997db1/.aliases#L76-L77) instead of including them in the poetry config.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/iloveitaly/todoist-scheduler",
    "name": "todoist-scheduler",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "todoist,scheduler,task,management",
    "author": "Michael Bianco",
    "author_email": "mike@mikebian.co",
    "download_url": "https://files.pythonhosted.org/packages/61/11/f55ef47a1d82909f8754548405cbe95459eecaabda90cc76e970cdc5bb46/todoist_scheduler-0.5.4.tar.gz",
    "platform": null,
    "description": "[![Release Notes](https://img.shields.io/github/release/iloveitaly/todoist-scheduler)](https://github.com/iloveitaly/todoist-scheduler/releases) [![Downloads](https://static.pepy.tech/badge/todoist-scheduler/month)](https://pepy.tech/project/todoist-scheduler) [![Python Versions](https://img.shields.io/pypi/pyversions/todoist-scheduler)](https://pypi.org/project/todoist-scheduler) ![GitHub CI Status](https://github.com/iloveitaly/todoist-scheduler/actions/workflows/build_and_publish.yml/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n# Todoist Task Scheduler & Filterer\n\nI'm a heavy user of [Todoist](http://mikebian.co/todoist) and I noticed that:\n\n1. If I have [a smaller list of tasks to accomplish](https://mikebian.co/improve-motivation-and-focus-with-small-contexts/), I get through them faster.\n2. Having a large list of tasks creates 'cognitive drag' and stresses me out\n3. It takes time to look through and review long list of tasks\n\nThis 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.\n\nThis 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](https://mikebian.co/hyper-focus).\n\n## Usage\n\n```text\nUsage: todoist-scheduler [OPTIONS]\n\n  Organizes todoist tasks based on custom rules\n\nOptions:\n  --task-limit INTEGER   Total task limit for the day  [default: 20]\n  --default-filter TEXT  Default todoist filter  [default: (today | overdue) &\n                         !assigned to:others & !recurring]\n  --filter-json TEXT     Default filter file  [default: filters.json]\n  --punt-time TEXT       How far to punt a task into the future. Use todoist\n                         natural language format. The special value 'jitter'\n                         will generate a random date.  [default: in 2 days]\n  --jitter-days INTEGER  What day range to jitter tasks across when\n                         rescheduling them  [default: 14]\n  --dry-run              Dry run the task updates\n  --api-key TEXT         API key. Sourced from TODOIST_API_KEY as well\n  --help                 Show this message and exit.\n```\n\nTake a closer look at the default filter:\n\n```text\ndefault: (today | overdue) & !assigned to:others & !recurring\n```\n\nHere's what this does:\n\n* Only applies filters to task that are assigned to you\n* Ignores recurring tasks\n* Looks at tasks due on or before today\n\n#### filters.json schema\n\n```json5\n[\n  // limit defines the number of tasks you think you can complete today\n  { \"filter\": \"@writing\", \"limit\": 2 },\n  { \"filter\": \"@research\", \"limit\": 3 },\n\n  // the filter text uses the todoist search syntax\n  { \"filter\": \"#House\", \"limit\": 3 },\n]\n```\n\nThe JSON file is loaded in as [JSON5](https://json5.org) so you can add comments.\n\nYou can also override options for specific entries and reference saved/named filters:\n\n```json5\n[\n  // loosen the priority filter\n  { \"filter\": \"@writing\", \"limit\": 2, \"priority\": 2 },\n\n  // reference a saved filter\n  { \"filter\": \"Communication\", \"limit\": 3 },\n]\n```\n\n### Docker\n\nEasiest way to use this is using the pre-built docker image. Here's an example [docker-compose.yml](/docker-compose.yml). This uses the `main.py` as a cron-like entrypoint to run this script on a schedule.\n\n## Development\n\nRun with debug logging:\n\n```shell\nLOG_LEVEL=DEBUG todoist-scheduler\n```\n\nPlay with the Todoist API (in `ipython`):\n\n```python\nfrom todoist_api_python.api import TodoistAPI\nimport os\napi = TodoistAPI(os.getenv(\"TODOIST_API_KEY\"))\n```\n\nNote that `ipython` is not included in the repo, [I install all my debugging tools via this alias](https://github.com/iloveitaly/dotfiles/blob/e41a309b0ca1f5099bc6d902d0956ba0fc997db1/.aliases#L76-L77) instead of including them in the poetry config.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Automatically reschedule tasks in Todoist to reduce the size of the todo lists you see each day.",
    "version": "0.5.4",
    "project_urls": {
        "Homepage": "https://github.com/iloveitaly/todoist-scheduler"
    },
    "split_keywords": [
        "todoist",
        "scheduler",
        "task",
        "management"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "550e3f261d672baf43c73fc52395901cfc2b6da06adc608ae341d901dd044a0f",
                "md5": "e0f97103b2025ef22bcd41cc9bbe0eeb",
                "sha256": "ec61278337fa8be806c9773e47aef617c03fdc436f7428d6cda11496a5cdedd4"
            },
            "downloads": -1,
            "filename": "todoist_scheduler-0.5.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e0f97103b2025ef22bcd41cc9bbe0eeb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 7279,
            "upload_time": "2024-02-19T20:40:03",
            "upload_time_iso_8601": "2024-02-19T20:40:03.439471Z",
            "url": "https://files.pythonhosted.org/packages/55/0e/3f261d672baf43c73fc52395901cfc2b6da06adc608ae341d901dd044a0f/todoist_scheduler-0.5.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6111f55ef47a1d82909f8754548405cbe95459eecaabda90cc76e970cdc5bb46",
                "md5": "267cc910c7c710eccc4dc910c07a8b32",
                "sha256": "29be9e7310ec32907d203aa5d8fe236d56f4c9986c8fcc74c3e9060578349281"
            },
            "downloads": -1,
            "filename": "todoist_scheduler-0.5.4.tar.gz",
            "has_sig": false,
            "md5_digest": "267cc910c7c710eccc4dc910c07a8b32",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 5878,
            "upload_time": "2024-02-19T20:40:05",
            "upload_time_iso_8601": "2024-02-19T20:40:05.383644Z",
            "url": "https://files.pythonhosted.org/packages/61/11/f55ef47a1d82909f8754548405cbe95459eecaabda90cc76e970cdc5bb46/todoist_scheduler-0.5.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-19 20:40:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "iloveitaly",
    "github_project": "todoist-scheduler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "todoist-scheduler"
}
        
Elapsed time: 0.19054s