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.4.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

aw_client-0.5.4-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aw-client-0.5.4.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.12.4-arch1-2

File hashes

Hashes for aw-client-0.5.4.tar.gz
Algorithm Hash digest
SHA256 d14642226773a59e90cc353f69146759765560d027adc40eb5e169989f0d7556
MD5 b9d47deefbbc5fedc0ff8a193932b07e
BLAKE2b-256 1aa7b3ce4d3ce23736f924b8afab0ecd3f9046bb838eb2d64e5f30615e6c62e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aw_client-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.12.4-arch1-2

File hashes

Hashes for aw_client-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5a3a12ab6771cbc95c08fa631e069f058781aa8b66e5c1985ca51a87f8f38efe
MD5 b62609d71953a5410dad803a406533e0
BLAKE2b-256 cae38fcd09f873048fb0f3ff8945e2e1ac5689906baeaabd3ffa23fad54a2744

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