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.
Debugging
- Run python with
LOG_LEVEL=debug
to get additional debugging output - If invalid events have been queued for submission, you may need to delete the file-based queues generated by this library
- To use the development version of this library use
aw-client = {path = "../aw-client" }
inpyproject.toml
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
File details
Details for the file aw-client-0.5.7.tar.gz
.
File metadata
- Download URL: aw-client-0.5.7.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.6 Linux/5.13.13-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe61d5f2f10be9bf38ff0db509a6bda139a05126b5b30258e94ca25ce5cc6003 |
|
MD5 | 4e3e35b49d31a1f116b63b814cbaa189 |
|
BLAKE2b-256 | e526a48c22db6b07c6f7a499aa3e1f479ad5a86e18feee451cd5900072bf4b6c |
File details
Details for the file aw_client-0.5.7-py3-none-any.whl
.
File metadata
- Download URL: aw_client-0.5.7-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.6 Linux/5.13.13-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5807dfe33d8e74856ec65c8ee2910f062d5654f4cd5f2366d43409c1c4be357e |
|
MD5 | daeff6582781774db252336b2a052508 |
|
BLAKE2b-256 | b6fbf81a876259e4d1f221b24ed8e179a8a4861378cd0c332694f0bb85195400 |