Skip to main content

Python SDK for Mila Air Purifiers

Project description

milasdk

Python SDK for Mila Air Purifiers. The primary goal is to use this to power integrations for Home Assistant.

Installation

pip install milasdk

Usage

Simple example

async def main():
    logging.basicConfig(level=logging.DEBUG, format='%(asctime)-15s %(levelname)-8s %(message)s')

    #create the authenticated session
    async with DefaultAsyncSession(aiohttp.ClientSession(), USERNAME, PASSWORD) as session:
        api = MilaApi(session)

        while True:
            await update(api)
            await asyncio.sleep(60)

Please see simple_example.py for a full working example of usage of this library.

Objects

MilaAPI

The main client class that handles communications between the client and Mila service using GraphQL

API Overview

The Mila GraphQL schema can be found in mila_schema.gql.

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

milasdklite-0.0.2.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

milasdklite-0.0.2-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file milasdklite-0.0.2.tar.gz.

File metadata

  • Download URL: milasdklite-0.0.2.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for milasdklite-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c167471d7198cddfd7681392a05309c7d9032ec675934af82d1b3b2f627dc972
MD5 8bcaafb5aa2e6dfc95706b5c5d93ca6e
BLAKE2b-256 3072505a50cc452bc95e3e5daf0407a4be363779cc7962a2ba094a8e9cdb5a4d

See more details on using hashes here.

File details

Details for the file milasdklite-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: milasdklite-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for milasdklite-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ece10277221fb9e283da7aefe16baad3b3793eee3214c6a4adf8c58145e3adcd
MD5 5b289a66c7eb87fb81b86fcf60a8dad2
BLAKE2b-256 c9d27f9f1cbd99208dfc75e0e990c47e2c94b172842054d97b1b097a0db21ad9

See more details on using hashes here.

Supported by

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