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

milasdk-2026.1.3.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

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

milasdk-2026.1.3-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file milasdk-2026.1.3.tar.gz.

File metadata

  • Download URL: milasdk-2026.1.3.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for milasdk-2026.1.3.tar.gz
Algorithm Hash digest
SHA256 2613f2caeb91c45530810e332d12603b47ea45b914071404f76e04b66e62be00
MD5 0a55fc1486485ee240fb5e0b2c67b466
BLAKE2b-256 96b519e974bc29d2a733572499803b544400fc299d54d09dd8913de3251b185a

See more details on using hashes here.

File details

Details for the file milasdk-2026.1.3-py3-none-any.whl.

File metadata

  • Download URL: milasdk-2026.1.3-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for milasdk-2026.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2927504e3b07dda494bc5080ea7ff7ce7c8bf87963ebcddb89ce7b4b763707c0
MD5 7e82ce5db75505bf77040760f692b726
BLAKE2b-256 d79c63d860b1edd97470cabe1a2a484cd393eae95f06088a9d1f13a2f7e2f4e8

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