Lost Time Tracker is a Python project that analyzes system usage logs and estimates how much time you spend in different applications.
It generates weekly reports with detailed statistics and translates wasted time into creative equivalents, such as:
- How many books you could have read π
- How many movies you could have watched π₯
- How many kilometers you could have run π
The project now includes automatic application categorization using Hugging Face's Zero-Shot Classification and shows a progress bar for classification with tqdm.
βοΈ Collects running process data from the operating system
βοΈ Automatic app categorization (Browser, Games, Productivity, etc.) using AI
βοΈ Classification progress shown with a progress bar
βοΈ Reports in tables (terminal output)
βοΈ Stats per category and per application
βοΈ Creative conversion of hours β productivity (e.g. books, movies, km run)
π οΈ Planned:
- Export reports to
.txtand.pdf - Graphs with
matplotlib - Cross-platform support (Windows, macOS, Linux)
- Python 3.12
- Main libraries:
wmiβ process collection on Windowspandasβ data handlingtqdmβ classification progress bartransformersβ zero-shot classification of appstabulate/prettytableβ terminal table reportsmatplotlibβ chart generation (planned)
--- Screen Time Report (Last 7 Days) ---
Estimated Total Screen Time: 45.23 hours
Total Process Execution Time by Category:
Productivity 18.50
Browser 12.30
Games 8.20
Entertainment 5.80
You could have read 2.05 books (10h each) with the time spent on games and browsing.- Historical data collection (last 7 days)
- Automatic AI-based app categorization
- Classification progress display (tqdm)
- Usage reports by category
- Creative conversions (books, movies, marathons, km run)
- Report export (.txt, .pdf)
- Graphical visualization with matplotlib
- Cross-platform support (Windows, macOS, Linux)
- Clone the repository:
git clone https://github.com/lotouux/lost-time-tracker.git
- Create and activate a virtual environment (optional but recommended):
python -m venv venv
# On Windows
.venv\Scripts\activate
# On macOS/Linux
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run the script:
python main.pyThis project is under the MIT License β feel free to use, modify, and contribute.
Contributions are welcome!
Suggestions, improvements, and new ideas can be discussed via issues or pull requests.