Skip to main content

Generate a digest of comments that occured since the last checked in date. Useful for including in an email.

Project description

Todoist Project Digest

Todoist doesn't have a way to generate a digest of all recent comments in a project created by a specific user. This makes it challenging to see what changed and what requires your action if you are collaborating with someone on a project.

This is a simple project which generates a digest of all comments by a particular user on a particular project.

This project was also a good excuse to play around and test some functional programming/data manipulation tooling I've been messing with (funcy, funcy-pipe, and whatever).

Usage

Docker

docker pull ghcr.io/iloveitaly/todoist-digest:latest
docker run --env-file .env ghcr.io/iloveitaly/todoist-digest:latest

Want to run a one off execution?

docker run --env-file .env ghcr.io/iloveitaly/todoist-digest:latest todoist-digest --help

Want to inspect the docker container?

docker run -it ghcr.io/iloveitaly/todoist-digest:latest bash

Locally

Run this locally using:

bin/local-digest-html

Or run directly:

poetry run todoist-digest \
  --last-synced "2023-12-04T15:52:48Z" \
  --target-user user@gmail.com \
  --target-project ProjectName

Or, email yourself the digest:

poetry run todoist-digest \
  --last-synced $LAST_SYNC \
  --target-user $TARGET_USER \
  --target-project $TARGET_PROJECT \
  --email-auth $EMAIL_AUTH \
  --email-to $EMAIL_TO

Development

Docker Build

This repo uses nixpacks for building a Dockerfile. Why? Because I like trying new things.

Until asdf support is built into nixpacks, you'll have to do something like:

export NIXPACKS_POETRY_VERSION=$(asdf-current-version poetry)
export NIXPACKS_PYTHON_VERSION=$(asdf-current-version python)

(asdf-current-version is a function I have in my shell which returns the current version of a tool)

In order to pass the py + poetry versions properly to nixpacks:

nixpacks build . --name todoist-digest --env NIXPACKS_PYTHON_VERSION --env NIXPACKS_POETRY_VERSION --start-cmd bin/cron-digest

Playground

ipython shell with some helpful variables defined:

./playground.py

Run with ipdb

Open up an exception when there's an exception:

ipdb3 $(which todoist-digest) --last-synced 2023-12-14T13:38:25Z ...

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_digest-0.4.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

todoist_digest-0.4.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file todoist_digest-0.4.0.tar.gz.

File metadata

  • Download URL: todoist_digest-0.4.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.7 Linux/6.2.0-1019-azure

File hashes

Hashes for todoist_digest-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c0991bad6511e428ba2df5e3d8d793af069a996a68f9be435592fcb66250638d
MD5 41532337175916b53ec0dcac61d06f1a
BLAKE2b-256 bca1e9e8bb942354859788c924cc14c343ce37b71d971947cf722d84fa0b8b9a

See more details on using hashes here.

File details

Details for the file todoist_digest-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: todoist_digest-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.7 Linux/6.2.0-1019-azure

File hashes

Hashes for todoist_digest-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 598e5e27c6819fe1d9d640c200bd713c44c95d3d056d56593b2312e434929369
MD5 4f9db32f5e37ebedf4456050402b6f60
BLAKE2b-256 251475ed26920f93063b1ee6237ad70914f5bfc299035851550b76123884b48b

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