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

Uploaded Python 3

File details

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

File metadata

  • Download URL: milasdk-2026.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e8b39fd6d3a3672252b2fa0a13695999c6471bbc6ac3b1604b6540f5410dec68
MD5 200298d0e60bc1a1f93e15887b1972b7
BLAKE2b-256 863f94bfcf678e0244a4408978acd3b67214950f2b515dfb044f2b2e91520e5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: milasdk-2026.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 001a924d30e75369bd683259286def490eef0ea72a68cbc376b9bd9dc45dc8e8
MD5 8d406a135ef6c69643562a13f5fd57ab
BLAKE2b-256 2c0ddffedc6fefd915f5386393df88d3c81694487c6767673eef03e5aba9fc44

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