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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file kaiterra-async-client-1.0.0.tar.gz.

File metadata

  • Download URL: kaiterra-async-client-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for kaiterra-async-client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6ae8b8ee0eb14168a4344f69de2a5daf1b4ed6a778eb2e68e1091ecb60c488c6
MD5 ba997450a5cf60cea8d11b352583655c
BLAKE2b-256 dce15b0ee86f1b8d202bbbad9e2fa441d4c788d9a016063b6b4926b15db7df14

See more details on using hashes here.

File details

Details for the file kaiterra_async_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kaiterra_async_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7be2095653c5e3cb0ccc0f9debc6a678308821e10a28bfd720c504e06b57a6d3
MD5 de5b12f847d65a9606ce4ea7007d3cd2
BLAKE2b-256 18437cefabc619ea63ebb48c272d24e18f3ce2342afb614dbf1817ef1df586e3

See more details on using hashes here.

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