← Back to Projects
Completed
Backend Development

CLI Task Manager

Python command-line tool to add, categorize, complete and delete tasks, stored in a local JSON file.

CLI Task Manager

Date

April 3, 2026

Objective

Manage a personal to-do list from the terminal without an external service.

Task dataclass with UUID and creation timestamp. Operations return new lists instead of mutating state; storage is a separate module.

Challenges

  1. 01Persisting UUIDs and datetimes in plain JSON
  2. 02Handling unknown or malformed IDs without a traceback

How it was solved

  1. 01asdict on save; UUID and datetime rebuilt on load
  2. 02ValueError on lookup, printed as an error message

Results

  • No third-party dependencies: runs on the Python standard library

Overview

Python command-line app that keeps a to-do list in tasks.json. The file is written to the working directory after every change.

Technical Implementation

Data Model

Fields: title, optional category, UUID, creation timestamp, completion flag. Updates use dataclasses.replace.

Storage

A missing file loads as an empty list, so the first run needs no setup.

CLI

Each argparse subcommand maps to a handler that loads, applies the change and saves.

Features

  • add "<title>" --category <name> creates a task; category is optional
  • list prints status ([X] / [ ]), title, date, category and ID
  • complete <id> marks a task as done
  • delete <id> removes a task

Technologies

  • Python 3.12
  • Argparse
  • JSON
  • UUID

Impact

You jot down tasks from the terminal and they are still there next time. They live in a JSON file you can open or copy yourself, with no account to create.

Ask my portfolio

AI

I answer from what's published on this site and link the project each answer comes from. If you'd rather talk to Fer, tell me and I'll pass on your details.