Skip to main content

Client library for ActivityWatch

Project description

aw-client

GitHub Actions badge Code style: black Typechecking: Mypy

Documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aw-client-0.5.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

aw_client-0.5.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file aw-client-0.5.0.tar.gz.

File metadata

  • Download URL: aw-client-0.5.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.11.13-arch1-1

File hashes

Hashes for aw-client-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d3599b8a12949961e7657c6114fbbcd8e8417d94940792fc02d29afc47a348c9
MD5 7ba56970a1e75eb17a4cc2fdaffea8b9
BLAKE2b-256 54a3678b703e88d47ca59a876ce2fee53d09f881f4096dae519b32e0a1d8c8a9

See more details on using hashes here.

File details

Details for the file aw_client-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: aw_client-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.11.13-arch1-1

File hashes

Hashes for aw_client-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16bcc53171b98c369454ce380989ca00aaf804a2a422a4674b60e2f3ae7820a6
MD5 4920426532640bac7726ee1fd44c10af
BLAKE2b-256 072cc772e5d56c9a1e0f0b07a757ac707e346dd42da029218271c6de4944ff60

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page