Skip to main content

Kaiterra API Async Client

Project description

Python 3 client for retrieving readings from your Laser Egg or Sensedge using the Kaiterra REST API.

To use it, you’ll first need to create an account at the Kaiterra Dashboard, then create an API key under Settings -> Profile -> Developer.

Getting Started

Install the library using pip:

pip install kaiterra-async-client

Example

Here’s some code to retrieve readings from a couple test devices, one Laser Egg and one Sensedge:

import aiohttp
from kaiterra_async_client import KaiterraAPIClient

async with aiohttp.ClientSession() as session:
        client = KaiterraAPIClient(session, api_key='YOUR_API_KEY_HERE')
        r = await client.get_latest_sensor_readings([
                '/lasereggs/00000000-0001-0001-0000-00007e57c0de',
                '/sensedges/00000000-0031-0001-0000-00007e57c0de',
        ])
        print(r)

Development

Source code, issues, and pull requests are managed using Github.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaiterra-async-client-1.0.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

kaiterra_async_client-1.0.0-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page