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([
                '/devices/00000000-0001-0001-0000-00007e57c0de/top',
                '/devices/00000000-0031-0001-0000-00007e57c0de/top',
        ])
        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.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

kaiterra_async_client-1.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kaiterra-async-client-1.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for kaiterra-async-client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 59aa7ec896882303df394b5b5628ebf39054dc5fc920dda9ee74565b7b6c3cff
MD5 ce70543136320c749b1da95e8213e89e
BLAKE2b-256 31777e40b6aa258e58fda81d61b767e8859c2825b015032926feeea277013409

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kaiterra_async_client-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64066414e46726a415ee612314ed01a213a06f07610e51f3e157a1a82b42709d
MD5 baa814d643a8ce47a7235ea33622a109
BLAKE2b-256 968b9adca033e75fbbf61c3e5eaf5b44ffd71a38d24f61da3e31ba3573c593f0

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