Skip to main content

A rich CLI todo app with project management and task tagging

Project description

Demo

Todo CLI

A powerful command-line interface todo application with project management features, time tracking, and rich terminal output that plays well with git repos and aims to keep in the flow without the need of juggling between external services.

Motivation / Executive Summary

Efficient task management is essential for productivity in any project. This tool provides a simple, local, and git-friendly way to track todos directly within your project directory. By keeping your todo list version-controlled and out of your repository with .gitignore, you can maintain focus and organization without cluttering your codebase or relying on external services, in line with our spirit to enhance productivity and flow at Flowistic.

Features

Project Management

  • Project-based task organization with custom prefixes
  • Automatic task numbering (e.g., PROJ-001)
  • Local todo lists (per directory)

Task Management

  • Interactive task creation
  • Task types (feature, bugfix, docs, test, refactor, chore) with color coding
  • Priority levels (high, medium, low) with color coding
  • Due dates with natural language support ("tomorrow", "next friday")
  • Task completion tracking
  • Rich terminal output with detailed task information
  • Task notes with chronological history
  • Update task properties after creation

Time Tracking

  • Built-in Pomodoro-style timer (default: 25 minutes)
  • Customizable work session durations
  • Work session history per task
  • Interruption tracking
  • Total time worked statistics

Project Analytics

  • Comprehensive project status dashboard
  • Task completion rates
  • Priority distribution
  • Due date statistics
  • Work session analytics
  • Time tracking summary

Visual Board (Trello-like)

You can visualize your tasks in a Trello-like web board using Dash:

todo board

This command launches a local Dash web app (requires Dash 3.x+ and [dash-bootstrap-components]) displaying your tasks as cards in columns by status (Pending, Completed, Cancelled). Each card shows:

  • Title (with status badge)
  • Task type and priority (color-coded badges)
  • Task ID
  • Due date
  • Tags (as badges)

The board uses modern styling for easy scanning and prioritization. The app opens automatically in your browser at http://127.0.0.1:8050/. The browser tab and header will display "Flowistic Task Board".

Note: If you haven't installed Dash, add it via your environment manager:

uv pip install dash dash-bootstrap-components dash-mantine-components

Installation

pip install flowistic-todo

Usage

Initialize a Project

todo init

Follow the prompts to set:

  • Project name
  • Project description
  • Task prefix (e.g., "PROJ" for PROJ-001)

If the current directory is a git repository, todo.yaml will be automatically added to .gitignore.

Add a Task

todo add

You'll be prompted for:

  • Task title
  • Description (optional)
  • Type (feature/bugfix/docs/test/refactor/chore)
  • Priority (low/medium/high)
  • Due date (optional, supports natural language)
  • Initial note (optional)

List Tasks

todo list

Shows a table with:

  • Task ID (e.g., PROJ-001)
  • Type (color-coded by category)
  • Title
  • Priority (color-coded)
  • Due date status
  • Time worked
  • Completion status
  • Number of notes

Show Task Details

todo show PROJ-001

Shows detailed information about a specific task:

  • Task title and task ID
  • Task type
  • Status and priority
  • Description
  • All notes in chronological order
  • Due date with status
  • Work session history
  • Creation date

Manage Task Notes

todo note add PROJ-001 "Note text"     # Add a new note
todo note add PROJ-001                 # Add note with interactive prompt
todo note reset PROJ-001               # Clear all notes (with confirmation)

Update Task Properties

# Update task type
todo update type PROJ-001 feature       # Set type directly
todo update type PROJ-001              # Interactive prompt

# Update task priority
todo update priority PROJ-001 high     # Set priority directly
todo update priority PROJ-001          # Interactive prompt

# Update due date
todo update due PROJ-001 "next friday" # Set due date directly
todo update due PROJ-001 clear         # Remove due date
todo update due PROJ-001               # Interactive prompt

# Update title
todo update title PROJ-001 "New title" # Set title directly
todo update title PROJ-001             # Interactive prompt

# Update description
todo update description PROJ-001 "New description" # Set description directly
todo update description PROJ-001                   # Interactive prompt

Task Cancellation & Deletion

  • todo cancel <task_id>: Mark a task as cancelled. The task remains in your list but its status is shown as cancelled in both list and show commands.
    • Example: todo cancel PROJ-001
  • todo delete <task_id>: Permanently remove a task from your todo list. This action cannot be undone.
    • Example: todo delete PROJ-002

Cancelled tasks are excluded from project completion statistics and are clearly indicated in task listings.

Work on a Task

todo workon PROJ-001              # Start a 25-minute work session
todo workon PROJ-001 -d 45       # Start a 45-minute work session

Features:

  • Interactive progress bar
  • Time tracking
  • Session history
  • Graceful interruption handling (Ctrl+C)

View Project Status

todo status

Shows:

  • Project information
  • Task completion rates
  • Priority distribution
  • Due date statistics
  • Work session analytics
  • Time tracking summary

Complete a Task

todo complete PROJ-001

Get Help

todo help                # Show all commands
todo help <command>      # Show detailed help for a specific command

Configuration

The app stores tasks in YAML format:

  • todo.yaml in the directory where the todo init command is run
  • If in a git repository, todo.yaml is automatically added to .gitignore

Task Storage Format

project:
  name: "My Project"
  description: "Project description"
  prefix: "PROJ"
  next_task_number: 1
tasks:
  - task_id: "PROJ-001"
    title: "Example Task"
    description: "Task description"
    type: "feature"
    priority: "high"
    created_at: "2025-04-12T20:00:00"
    due_date: "2025-04-19T23:59:59"
    completed: false
    notes:
      - "Initial task planning complete"
      - "Updated requirements after review"
    work_sessions:
      - started_at: "2025-04-12T20:30:00"
        duration: 25
        interrupted: false

Running Tests

This project uses pytest for testing and uv for environment management. To run all tests:

uv pip install -r requirements.txt
uv pytest

If you encounter import errors or tests are not discovered:

  • Make sure you are in the project root directory.
  • Ensure pytest is installed in your uv environment.
  • If you see import errors related to todo, try:
    PYTHONPATH=. uv pytest
    

Test files are located in the tests/ directory and cover both core logic and CLI commands.

Development

  1. Clone the repository
  2. Install dependencies:
pip install -r requirements.txt
  1. Run the CLI:
python -m todo.cli

License

MIT License

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

flowistic_todo-0.1.7.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

flowistic_todo-0.1.7-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file flowistic_todo-0.1.7.tar.gz.

File metadata

  • Download URL: flowistic_todo-0.1.7.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for flowistic_todo-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c55d463a285f2d39617ead19647efeaadeab24b1264a3b5406496e3f46e312cb
MD5 e1e49610699d5b4c494adae425071252
BLAKE2b-256 5c6e6ecad67cccbe74f1982a265bcd88c3d0571a1215538d06932bc650eeaa42

See more details on using hashes here.

File details

Details for the file flowistic_todo-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: flowistic_todo-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for flowistic_todo-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0c25e83098cccc310ee17a82320dfdeaedd61dd2a6fdd9c66b05975ad85e47ec
MD5 5d09a621afff5451932c7b2f34d039bf
BLAKE2b-256 3860902497bc6df870e8a028301b5e233897724eaa673efc330e18d2812846a5

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