https://github.com/activitywatch/aw-core
Core library for ActivityWatch
https://github.com/activitywatch/aw-core
activitywatch python
Last synced: 9 months ago
JSON representation
Core library for ActivityWatch
- Host: GitHub
- URL: https://github.com/activitywatch/aw-core
- Owner: ActivityWatch
- License: mpl-2.0
- Created: 2016-04-22T11:19:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-29T18:53:06.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:54:46.973Z (about 1 year ago)
- Topics: activitywatch, python
- Language: Python
- Size: 928 KB
- Stars: 48
- Watchers: 6
- Forks: 47
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
aw-core
=======
[](https://github.com/ActivityWatch/aw-core/actions)
[](https://codecov.io/gh/ActivityWatch/aw-core)
[](https://pypi.org/project/aw-core/)
[](https://github.com/psf/black)
[](http://mypy-lang.org/)
Core library for ActivityWatch.
## Modules
- `aw_core`, contains basic datatypes and utilities, such as the `Event` class, helpers for configuration and logging, as well as schemas for buckets, events, and exports.
- `aw_datastore`, contains the datastore classes used by aw-server-python.
- `aw_transform`, all event-transforms used in queries.
- `aw_query`, the query-language used by ActivityWatch.
## Logging
Run python with `LOG_LEVEL=debug` to use change the log level across all AW components
## How to install
To install the latest git version directly from github without cloning, run
`pip install git+https://github.com/ActivityWatch/aw-core.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.