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-0.0.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: kaiterra-async-client-0.0.3.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-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9c065983fcb320652c372b416bef68b77c5a2b8efccabb7d46409d28c36a0509
MD5 643d629b7f7d43fe98139d8f4d0fc6de
BLAKE2b-256 a9e0bfbc328f08e8fbbcad86ea0abbc5276eacffd7cd470e54082d930b50f698

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kaiterra_async_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e3c9acb4bac743adc1e471a4b7e80678cc0288b1daf28fb92d8e337533375a55
MD5 7a910a1af30cba7ecbd144420d1a4c73
BLAKE2b-256 5790c40b249407fe1aa8f10ad23a0b5a1a83d8def588632e5febd1c4251d8b52

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