Skip to content

purarue/active_window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

active_window

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

Installation

Requires python3.7+

To install with pip, run:

python3 -m pip install git+https://github.com/purarue/active_window

Usage

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")))

Tests

git clone 'https://github.com/purarue/active_window'
cd ./active_window
pip install '.[testing]'
flake8 ./active_window
mypy ./active_window

About

parse output of activity watch window-watchers

Topics

Resources

License

Stars

Watchers

Forks

Languages