library to parse:
- JSON export from activitywatch app for your phone
- JSON export from activitywatch app for your computer
- CSV files from my aw-window fork (window_watcher)
To get those, go to the raw data page and download the JSON dump. That is what this takes as input
Requires python3.7+
To install with pip, run:
python3 -m pip install git+https://github.com/purarue/active_window
Usage: active_window parse [OPTIONS] DUMP
parse a JSON or CSV (window_watcher) file
Options:
-j, --json Print result to STDOUT as JSON
--help Show this message and exit.
To use from python
:
from pathlib import Path
from active_window.parse import parse_window_events
data = list(parse_window_events(Path("./file.json")))
git clone 'https://github.com/purarue/active_window'
cd ./active_window
pip install '.[testing]'
flake8 ./active_window
mypy ./active_window