Introduction
Introduction to lawg.py
lawg.py is a Python library used for interacting with lawg’s API to create events, application logs, and insights. Both async and sync versions of the library are available.
Requirements
lawg.py requires Python 3.7 or higher and is operating system agnostic.
Installation
lawg.py can be found on PyPI and installed with pip.
Add the -U
flag to upgrade an existing installation.
If you’re planning to contribute to lawg.py, the poetry package manager is used internally. you can install the development dependencies from the cloned repository.
Quick Start
after importing lawg.py,
lawg.Client
, lawg.AsyncClient
, and lawg.Handler
are available for immediate use.
for demonstration purposes, assume the following variables are valid constant strings.
to create an event, use the lawg.Client.event
method.
if the feed will remain the same across multiple events, a feed object can be created.
A similar process can be used to create an insight.
To see more advanced usage, check out the Usage section.