SDK to access Clarity.io API resources
The package is available on PyPi so simple install with pip
:
pip install claripy-sdk
Please see the Snippets directory to see sample use cases. Below is the general use case:
import os
from claripy.clarity import Clarity
connection = Clarity(os.getenv("API_KEY"))
latest_data_by_min = connection.__measurements__.get()
devices = connection.__devices__.get()
sources = connection.__datasources__.get()
To create a Clarity
object, simply pass the API key as a parameter. You then have access to data from the three Clarity endpoints: measurements, devices, and datasources.
This repository is licensed under the Apache License