Client library for ActivityWatch
Project description
aw-client
Client library for ActivityWatch in Python.
Please see the documentation for usage and examples.
How to install
To install the latest git version directly from github without cloning, run
pip install git+https://github.com/ActivityWatch/aw-client.git
To install from a cloned version, cd into the directory and run
poetry install
to install inside an virtualenv. If you want to install it
system-wide it can be installed with pip install .
, but that has the issue
that it might not get the exact version of the dependencies due to not reading
the poetry.lock file.
Examples
The examples/
directory contains a couple of example scripts, including:
time_spent_today.py
- fetches all non-afk events and sums their duration to get the total active time for the day.merge_buckets.py
- merges two buckets with non-intersecting events by moving all events from one into the other.redact_sensitive.py
- redact sensitive events.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aw_client-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 065fc14104ee7cddea34e03f7c410b987b66649f7d7ed1a0cbe24b62af32c319 |
|
MD5 | f492095d298756c84d182d5cb5a3d43c |
|
BLAKE2b-256 | a8b522a9269e017351c3c5bad9e200dbbf82c86566bd5341140c5a40da26f3be |