semvec/pypi-packages huggingface dataset:
claripy-sdk 1.0.10
Python SDK for use with Clarity.io sensors

![last_commit](https://img.shields.io/github/last-commit/rogers-obrien-rad/clarity-python-sdk)
[![test suite](https://github.com/rogers-obrien-rad/clarity-python-sdk/actions/workflows/tests.yml/badge.svg)](https://github.com/rogers-obrien-rad/clarity-python-sdk/actions/workflows/tests.yml)

# Clarity.io Python SDK
SDK to access Clarity.io API resources

## Installation
The package is available on [PyPi](https://pypi.org/project/claripy-sdk/) so simple install with `pip`:

```bash
pip install claripy-sdk
```

## Usage
Please see the [Snippets](https://github.com/rogers-obrien-rad/clarity-python-sdk/tree/main/snippets) directory to see sample use cases. Below is the general use case:

```python
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
* [Clarity.io](https://www.clarity.io/)
* [Clarity.io Dashboard](https://dashboard.clarity.io/overview)
* [Clarity.io API Documentation](https://api-guide.clarity.io/)

## License
This repository is licensed under the [Apache License](https://github.com/rogers-obrien-rad/clarity-python-sdk/blob/main/LICENSE)

## Contributing
![contributing](https://img.shields.io/github/contributors/rogers-obrien-rad/clarity-python-sdk)