Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.14 KB

api-reference.rst

File metadata and controls

62 lines (43 loc) · 1.14 KB

API Reference

Here's an API reference for some of the most central components in aw_core, aw_client and aw_server. These are the most important packages in ActivityWatch. A lot of it currently lacks proper docstrings, but it's a start.

.. automodule:: aw_core
   :members:
   :undoc-members:

.. automodule:: aw_core.models
   :members: Event
   :undoc-members:

.. automodule:: aw_core.log
   :members:
   :undoc-members:

.. automodule:: aw_core.dirs
   :members:
   :undoc-members:


The aw_client package contains a programmer-friendly wrapper around the servers REST API.

.. automodule:: aw_client
   :members: ActivityWatchClient
   :undoc-members:


.. automodule:: aw_server
   :members:
   :undoc-members:

The ServerAPI class contains the basic API methods, these methods are primarily called from RPC layers such as the one found in aw_server.rest.

.. automodule:: aw_server.api
   :members: ServerAPI
   :undoc-members: