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

Uploaded Source

Built Distribution

kaiterra_async_client-1.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kaiterra-async-client-1.0.1.tar.gz
  • Upload date:
  • Size: 6.2 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.0.1.tar.gz
Algorithm Hash digest
SHA256 181d5610dc6b62020c49757c6ade82c5e23d76f56109e1436715d9df706756e3
MD5 b2619d02186311d38e5644217a2dd670
BLAKE2b-256 8311588a66eac0ce1eb334c5777accc452ce9c022b1b573ca1ba19260639f196

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kaiterra_async_client-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4b97d361cbe974e737dc0ecfb71a0e1a7c4ccc1a96b54684b6e5f16c4bf9d51
MD5 4bb7ed395f9c511b5c97e7741f45c805
BLAKE2b-256 0a62d96e7241e7b7699a94fb7e7afd4d18e5c0dbb295d9a91a6fa7bc5729bbc4

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