Skip to content

rogers-obrien-rad/clarity-python-sdk

Repository files navigation

last_commit test suite

Clarity.io Python SDK

SDK to access Clarity.io API resources

Installation

The package is available on PyPi so simple install with pip:

pip install claripy-sdk

Usage

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.

Resources

License

This repository is licensed under the Apache License

Contributing

contributing