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 trackincg
  • 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

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 tag (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 tag
  • 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 <tag>: 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 <tag>: 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:
  - tag: "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.5.tar.gz (16.3 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.5-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for flowistic_todo-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3567db7b38b57dd0a3b58a496bbcff567d76dd49bd07062f5ff3abf0571cb53e
MD5 e1c5e2b9dcf63d2298d6e12b00b8a33c
BLAKE2b-256 0426bf465abb2e81f7e17d988cf2c198113f9b22060ef3be154eef352285599c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for flowistic_todo-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 facd2f42e1a1237362dee92d4df965e939d3c7166b78663b05a99d2e4c88b59d
MD5 e7d4ddcd1c533e139597195e2a433f3b
BLAKE2b-256 f35d88c7f9ef044d744c4775d4383ddfefccd3159d50587505b3964220a45ec9

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