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.1.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.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: milasdk-2026.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7ae2a06ad3525f30125fd9b953d0b21691658108dd3198880884823cf2d27040
MD5 1861312b0f3e72801df9f4506f7fef97
BLAKE2b-256 6530462bb952989078e313f654990523e3a1cbb06034ab99b7a98220c38fdd01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: milasdk-2026.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c7003a771c5c1af72e246a2f0839ac9e4d161d21984bb520da603b34048986d
MD5 9ac3f1073ddb6f86c6d9ecb306b24fdb
BLAKE2b-256 5c52056ae07dc2dfe77f62582c897b721821245f81e8607dddd03dfe6244829c

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