Skip to main content

Dain-Bread Simple TODO list

Project description

dbs == dain-bread simple
========================
TODO list for minimalists

# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2022, Al Stone <ahs3@ahs3.net>

A "task" consists of a file that looks something like this:

Task: get something done
State: open
Project: stuff
Priority: h
Note: this is a note
Note: this is another note

(sans indenting, of course). Each key:value is exactly one line (everything
up until the newline). There are a few limits:

-- State is one of 'open', 'active', 'done' or 'deleted' [0]
-- Priority is one of 'h', 'm', 'l'

It's all pretty self-explanatory. I've tried to keep this as simple as
possible, but Python wants things packaged properly, and I wanted to have
both a CLI version (dbs) and an ncurses version (dbsui) using the same code
for managing tasks. So, yeah, needed to create a module to package and
distribute with.

Installation is simple: clone the source tree, cd to the clone, then:

$ make install

Or:

$ pip install dbs-todo

That's it. Python3 is the only requirement. Most distros will have the
right Python modules by default. I use this on Fedora and Debian, so
your mileage may vary.

To add a task like the one above:

$ dbs add 0001 stuff h "get something done"

That's it. It's automatically created as an open task. You can find all
open tasks with:

$ dbs lo

('lo' == 'list open' -- extra credit if you can figure out the command for
'list active' and 'list done').

If you do this:

$ dbs

You'll get a list of all current commands and any parameters they might need.

There is a config file: it is always $HOME/.config/dbs/config. The only thing
you can specify is this:

repo: <some directory path>

If it does not exist, it will be created. If the repo path does not exist,
it will be created, also. In the repo, there is a directory for each task
state containing one file for each task in that state. Task names must be
unique across all states since we move the files around in the various repo
directories [1].

With 0.6.0, I've added an ncurses-based UI. It's crude, probably buggy
even. It can be invoked with:

$ dbsui

There is a 'help' command ('?'). The left panel lists the projects that
have open tasks, and the right panel lists the tasks for the current
project. This is still experimental code so caveat emptor.


Notes:
[0] Nothing ever gets actually deleted unless you remove the files.
[1] In order to sync across machines, I create ~/Dropbox/dbs and use
Dropbox to sync that directory across machines.

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

dbs_todo-0.6.2.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

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

dbs_todo-0.6.2-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file dbs_todo-0.6.2.tar.gz.

File metadata

  • Download URL: dbs_todo-0.6.2.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for dbs_todo-0.6.2.tar.gz
Algorithm Hash digest
SHA256 7271454783a5a1af0cc9df735a8c3ed9813f4699a45757a6440195dfdeb6f62d
MD5 86416797ca2d529fb817a5bcaf3370fa
BLAKE2b-256 5a6d6095ccf0bec8b7aa498b6428601604db546ceadfbf8cee680850c4b96238

See more details on using hashes here.

File details

Details for the file dbs_todo-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: dbs_todo-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for dbs_todo-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 619a81a037f8a570e8a1c2e96280df8024c70252e2e40d23372b2f5b614df9dd
MD5 25ef72cbf6d0585d71159a76a6f071a0
BLAKE2b-256 730518d227b4bf5294312ae156e73b7da73ebf60926355e2929b93a6a336eb36

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