Skip to content

tanmaytiwari37/Utility_Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📝 Python To-Do List CLI

A lightweight command-line task manager that saves your tasks to a local text file. No database, no setup — just Python.


✨ About

A minimal, no-frills to-do list manager built in pure Python. Tasks persist across sessions via a simple text file (todo.txt). Built as a beginner-friendly utility to practice file I/O, list manipulation, and CLI design — no external libraries needed.

🎯 Features

  • Add tasks
  • 📋 View all tasks with numbered listing
  • Remove tasks by number
  • 💾 Auto-save — tasks persist in todo.txt between runs
  • 🪶 Zero dependencies — uses only Python's standard library

🛠️ Tech Stack

  • Python 3.6+ — uses f-strings
  • os module — checks if the file exists

📁 Project Structure

Utility_Scripts/
├── todo.py        # Main script
└── README.md

🚀 Getting Started

Prerequisites

python >= 3.6

Run

git clone https://github.com/tanmaytiwari37/Utility_Scripts.git
cd Utility_Scripts
python todo.py

📋 Usage

--- MENU ---

View Tasks
Add Task
Remove Task
Exit
Choose an option (1-4):

Example Session

--- MENU ---
1. View Tasks
2. Add Task
3. Remove Task
4. Exit
Choose an option (1-4): 2
Enter the task to add: Buy groceries
Added: 'Buy groceries'

--- MENU ---
Choose an option (1-4): 2
Enter the task to add: Call mom at 7 PM
Added: 'Call mom at 7 PM'

--- MENU ---
Choose an option (1-4): 2
Enter the task to add: Submit assignment
Added: 'Submit assignment'

--- MENU ---
Choose an option (1-4): 1

--- YOUR TASKS ---
1. Buy groceries
2. Call mom at 7 PM
3. Submit assignment
------------------

--- MENU ---
Choose an option (1-4): 3

--- YOUR TASKS ---
1. Buy groceries
2. Call mom at 7 PM
3. Submit assignment
------------------
Enter the number of the task to remove: 1
Removed: 'Buy groceries'

--- MENU ---
Choose an option (1-4): 4
Goodbye!

🧠 What I Learned

  • File I/O — reading and writing text files in Python
  • List manipulation — append, pop, enumerate
  • Error handling — using try/except to catch invalid input
  • Persistent storage — saving state between program runs without a database
  • Function decomposition — splitting code into small, single-purpose functions

👤 About Me

Tanmay Tiwari — B.Tech Aerospace Engineering, VIT Bhopal


📄 License

This project is licensed under the MIT License — feel free to use, modify, and learn from it.


About

A lightweight Python CLI to-do list manager with persistent file storage. Zero dependencies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages