greatday.common module

Common code used throughout this package.

drop_word_if_startswith(desc, *bad_words, op=<function _startswith_op>)

Removes all bad_words from the todo description desc.

drop_words(desc, *bad_words, op=<function <lambda>>)[source]

Removes all bad_words from the todo description desc.

Parameters
  • desc (str) –

  • bad_words (str) –

  • op (Callable[[str, str], bool]) –

Return type

str

todo_prefixes()[source]

Returns all valid todo prefixes.