Skip to main content

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.

Metadata

Release files for milasdklite 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for milasdklite 0.0.2
File Size Uploaded
milasdklite-0.0.2.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for milasdklite 0.0.2
File Interpreter ABI Platform
milasdklite-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 36.4 kB

Release files / milasdklite-0.0.2.tar.gz

Download URL milasdklite-0.0.2.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c167471d7198cddfd7681392a05309c7d9032ec675934af82d1b3b2f627dc972
BLAKE2b-256 checksum
How to use checksums
3072505a50cc452bc95e3e5daf0407a4be363779cc7962a2ba094a8e9cdb5a4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / milasdklite-0.0.2-py3-none-any.whl

Download URL milasdklite-0.0.2-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ece10277221fb9e283da7aefe16baad3b3793eee3214c6a4adf8c58145e3adcd
BLAKE2b-256 checksum
How to use checksums
c9d27f9f1cbd99208dfc75e0e990c47e2c94b172842054d97b1b097a0db21ad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page