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 milasdk 2026.1.3

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

Source distribution (sdist)

Source distribution for milasdk 2026.1.3
File Size Uploaded Provenance Actions
milasdk-2026.1.3.tar.gz 17.4 kB Without provenance Details for milasdk-2026.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 37.4 kB

Release files / milasdk-2026.1.3.tar.gz

Download URL milasdk-2026.1.3.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2613f2caeb91c45530810e332d12603b47ea45b914071404f76e04b66e62be00
BLAKE2b-256 checksum
How to use checksums
96b519e974bc29d2a733572499803b544400fc299d54d09dd8913de3251b185a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / milasdk-2026.1.3-py3-none-any.whl

Download URL milasdk-2026.1.3-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2927504e3b07dda494bc5080ea7ff7ce7c8bf87963ebcddb89ce7b4b763707c0
BLAKE2b-256 checksum
How to use checksums
d79c63d860b1edd97470cabe1a2a484cd393eae95f06088a9d1f13a2f7e2f4e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Security for milasdk 2026.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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