Skip to main content

Tasks

Proof of concept for a simple task queue, with a focus on UX and clean internal design.

Screenshot of a tasks session

Tasks can be installed through pip: pip3 install tasks, run with tasks.

Status for i3

Follow these steps to add the output of status to your i3 status bar.

  1. Set up a cron job (crontab -e) that saves the status every minute.

    * * * * * /path/to/tasks status > $HOME/.tasks.status
    
  2. Configure i3 to use the provided status wrapper (installed alongside the tasks command.)

    ...
        status_command tasks-i3status
    ...
    

Ubiquitous Capture

It is very useful to have a quick and low-friction way to add new items from anywhere. This can be achieved by combining tasks with a generic dialog tool and your window manager keybindings.

Example using zenity and i3:

bindsym $mod+t exec --no-startup-id bash -c "zenity --title 'Add TODO item' --text 'What needs to be done?' --entry --width 450 | xargs tasks addt"

Note that you will want to use tasks >= 2.7.0 for this since it detects external modification of the state file.

Automatic standup email

The standup command shows (among other things) recently completed items. One use case is to send this list to your phone to have it ready for a daily standup. The repo contains a script (under scripts) to send stdin as an email with Mailgun which you can then combine with a cron job as follows.

API_KEY=...
DOMAIN=...
EMAIL=...
30 9 * * tue,wed,thu,fri /path/to/tasks standup 1 | /path/to/mailgun.sh
30 9 * * mon /path/to/tasks standup 3 | /path/to/mailgun.sh

Development

To get started, have a look at the todo items for this project.

make dev_install  # one-time setup
make todo

Contributing

Pull requests are welcome. Please do keep in mind that the code is heavily inspired by the Elm architecture and consider the following guidelines.

  • Avoid mutation whenever possible, take advantage of PEP 448 to create updated versions of collections instead.
  • Side effects (and only side effects) should be in main.py; all other modules should be limited to pure code.
  • Avoid classes unless you have a really good reason for them (the code does not have any classes at the moment.)

Release files for tasks 2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tasks 2.8.0
File Size Uploaded
tasks-2.8.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tasks 2.8.0
File Interpreter ABI Platform
tasks-2.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.6 kB

Release files / tasks-2.8.0.tar.gz

Download URL tasks-2.8.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0f145014df82f27e965ed2453225fc6dca6430c4fb7492a819125de53f8657d0
BLAKE2b-256 checksum
How to use checksums
e30c885132ab9b854c90ebc724ef313268fc19fcc7fc0b4e480ce4e5486ca991
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

Release files / tasks-2.8.0-py3-none-any.whl

Download URL tasks-2.8.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94b6a20b2790717102e194d8ae2da5a84ee0cf509589f37d4192328237a9053a
BLAKE2b-256 checksum
How to use checksums
1c4941e1583044973ec7f9bd172b66a8301a478a57d9238f41432cf588bd0ca9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

Release history Release notifications | RSS feed

This release

2.8.0 This release

2 release files

2.7.0

2 release files

2.6.0

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page