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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mg_ismart_india_client-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c60138531eae345984ec8f6f1c1f9c2bcbd696f4425c09a58788f8ce81b9e4a8
MD5 670d68fdb9d40d258a85e0b20a089420
BLAKE2b-256 b24f26d4ddbeb4f00fe65bab1378e43e68dbeaff3886174b3c95fe5fe3311a6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mg_ismart_india_client-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mg_ismart_india_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6083f249942e1fbcc3232193cbc6820bf329f57763a21228a951f82e5a9ec38
MD5 692b2d52a0de90ba11426d76562052af
BLAKE2b-256 4afe0931be3de11c32d52e94e728110efdced6dc63bc8529207cb80380db735d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mg_ismart_india_client-0.1.0-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