Skip to main content

Update TaskWarrior task urgency based on the density of task dues in time

Project description

TWDensity

Update TaskWarrior task urgency based on the density of task dues in time

This is a simple Python script that analyzes the due dates of your tasks and counts how many tasks have a due date in a window of time. For each task, the density value is the number of tasks that have a due date near to him (i.e. in the interval [due-window, due+window]).

You can define the urgency for each density level, so the urgency of a task will take into account the density of tasks around it.

You don't need to define the due date of all your tasks, but just the ones that are milestones. Then, you can set dependencies of the other tasks on the milestones.

This script takes into account dependencies.

This is a simple method to add a time estimate to your tasks:

  1. you split your tasks in smaller tasks, all requiring about the same time effort
  2. you can create multiple sub-level of time effort with your UDA (e.g. writing an email is usally a light task, while writing a report is a heavy task) project)
  3. you set the due date of your tasks

Installation

  1. pipx install twdensity
  2. Add the configuration to your .taskrc file

Usage

You need to create a new UDA named density and define the urgency for each density level.

You can also customize the window size for density calculation by defining a new UDA named densitywindow.

To update the density value, simply run twdensity command. You can also run it as a hook of on-add and on-modify events.

Example configuration

uda.densitywindow.type=numeric # define the window size for density calculation
uda.densitywindow.label=DWindow
uda.densitywindow.default=5  # default value: 5

uda.density.type=numeric # define the urgency for each density level
uda.density.label=Density
urgency.uda.density.0.coefficient=0
urgency.uda.density.1.coefficient=0.17
urgency.uda.density.2.coefficient=0.33
urgency.uda.density.3.coefficient=0.5
urgency.uda.density.4.coefficient=0.67
urgency.uda.density.5.coefficient=0.83
urgency.uda.density.6.coefficient=1
urgency.uda.density.7.coefficient=1.17
urgency.uda.density.8.coefficient=1.33
urgency.uda.density.9.coefficient=1.5
urgency.uda.density.10.coefficient=1.67
urgency.uda.density.11.coefficient=1.83
urgency.uda.density.12.coefficient=2
urgency.uda.density.13.coefficient=2.17
urgency.uda.density.14.coefficient=2.33
urgency.uda.density.15.coefficient=2.5
urgency.uda.density.16.coefficient=2.67
urgency.uda.density.17.coefficient=2.83
urgency.uda.density.18.coefficient=3
urgency.uda.density.19.coefficient=3.17
urgency.uda.density.20.coefficient=3.33
urgency.uda.density.21.coefficient=3.5
urgency.uda.density.22.coefficient=3.67
urgency.uda.density.23.coefficient=3.83
urgency.uda.density.24.coefficient=4
urgency.uda.density.25.coefficient=4.17
urgency.uda.density.26.coefficient=4.33
urgency.uda.density.27.coefficient=4.5
urgency.uda.density.28.coefficient=4.67
urgency.uda.density.29.coefficient=4.83
urgency.uda.density.30.coefficient=5

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

twdensity-0.1.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twdensity-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file twdensity-0.1.0.tar.gz.

File metadata

  • Download URL: twdensity-0.1.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.15.4 CPython/3.11.2 Linux/6.1.0-21-amd64

File hashes

Hashes for twdensity-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7abd0a595cf675fc7bbf85f0d0307eaf11a29cb560e2ac7044c3cb387862c0af
MD5 582162331ea5a4427c81e883f750336e
BLAKE2b-256 afaeba322816df0d0162b07c20b581166793e2b25f4047858c41f6bd0eae918b

See more details on using hashes here.

File details

Details for the file twdensity-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: twdensity-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.15.4 CPython/3.11.2 Linux/6.1.0-21-amd64

File hashes

Hashes for twdensity-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16588a8ae90543b178a454db12e0483d6d1701eabd2a4581d6c26a1a0bad5fbc
MD5 039d1270318d06f353658219b758b896
BLAKE2b-256 799884e26b1cceaaebc160b3b5d254ecaba2e691267609b9c040ad81ef3aeee7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page