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.0.tar.gz (17.3 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.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: milasdk-2026.1.0.tar.gz
  • Upload date:
  • Size: 17.3 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.0.tar.gz
Algorithm Hash digest
SHA256 f176885fe8e129baeed4554ca72d175f6be8e0eb546c08eef222733c5fb1ad31
MD5 ab4163837448e2f3e07081c86429d156
BLAKE2b-256 0baa706f088ac595e9a5509d7e0b06ff3d5be67b9b585bf05b6f23becf41484c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: milasdk-2026.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a1c7c5b7a4e5d670bfed816448354b4ca8f36560542ea701b5a06a2f75d6ac5
MD5 48dfdaea4026de9e22195cb05e6a46c0
BLAKE2b-256 3af6e04c7f28778f6b1a02676a87942a4ae4637704de877bf929fc93017bf5b9

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