Skip to main content

Python client for the MG iSMART India TAP/gateway API

Project description

MG iSMART India Client

Python client for the MG iSMART India TAP/gateway API.

This package contains the protocol/client layer used by the MG iSMART India Home Assistant work. It is intentionally separate from Home Assistant so it can be tested and released independently.

Install

pip install mg-ismart-india-client

Basic use

import aiohttp
from mg_ismart_india_client import MgIndiaClient, hash_control_pin

async with aiohttp.ClientSession() as session:
    client = MgIndiaClient(
        session,
        phone="9876543210",
        password="your-password",
        vin="YOURVINHERE",
        pin_hash=hash_control_pin("1234"),
    )

    await client.login()
    vehicles = await client.vehicles()
    status = await client.status()

Control methods require a configured PIN hash. The raw 4-digit control PIN is not stored by the client.

Development

python -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
pytest -q
ruff check src tests

License

MIT License. Copyright (c) 2026 John Lazarus.

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

mg_ismart_india_client-0.1.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

mg_ismart_india_client-0.1.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file mg_ismart_india_client-0.1.1.tar.gz.

File metadata

  • Download URL: mg_ismart_india_client-0.1.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mg_ismart_india_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d205496bc1c1c6f250ecc80a358d8fed40b6bfb61d099e12391ed3717f07fa49
MD5 e627ae9c5379aaae76c33fb714b65733
BLAKE2b-256 ca16d63c838aee74276e0eab512a00c9aecc18a519015f2d37311ec6d1ac6704

See more details on using hashes here.

Provenance

The following attestation bundles were made for mg_ismart_india_client-0.1.1.tar.gz:

Publisher: publish.yml on john-lazarus/mg-ismart-india-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mg_ismart_india_client-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mg_ismart_india_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f86617f5d3e6282ac37496540b048b1dcb0331f679d79598c5d944534b849a8
MD5 643dbe8d3c3d2f8f5f533581ab6d25f4
BLAKE2b-256 52c50011e097843f97498ff58e2e5ac78f2a2e0aed647a0e03e11aa60cc2e625

See more details on using hashes here.

Provenance

The following attestation bundles were made for mg_ismart_india_client-0.1.1-py3-none-any.whl:

Publisher: publish.yml on john-lazarus/mg-ismart-india-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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