Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python To-Do CLI

A simple command-line to-do list application written in Python. Tasks are stored in a local JSON file, so your list is saved between runs.

Features

  • Add a new task
  • List all tasks (with completion status)
  • Mark a task as completed
  • Remove a task

Data storage

Tasks are saved in todos.json, which is created automatically the first time you add a task. This file is excluded from version control (see .gitignore), so each user starts with their own empty list.

To see what the data structure looks like, check todos-example.json.

Project structure

todo-cli/
├── main.py              # Entry point, menu loop
├── todos.py              # Core logic: load, save, add, list, complete, remove
├── todos-example.json    # Sample data structure
├── .gitignore
└── README.md

What I learned

  • Reading from and writing to files in Python
  • Working with JSON data
  • Structuring a small project across multiple files
  • Basic error handling (missing file, invalid input, empty list)

About

A simple command-line to-do list app built with Python. Tasks are stored locally in JSON.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages