Here’s a simple command-line time tracker written in Python. This tool allows users to start, stop, and view time spent on tasks directly from the terminal.
How to Use:
-
Save the code to a file, e.g.,
time_tracker.py. -
Run commands:
-
python time_tracker.py start <task_name>– Start tracking a task. -
python time_tracker.py stop <task_name>– Stop tracking a task. -
python time_tracker.py report– View total time per task.
-
This tool uses a local JSON file to store session data and supports multiple tasks. Let me know if you want features like date filtering, export to CSV, or a more advanced UI.
Share this Page your favorite way: Click any app below to share.