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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d205496bc1c1c6f250ecc80a358d8fed40b6bfb61d099e12391ed3717f07fa49
|
|
| MD5 |
e627ae9c5379aaae76c33fb714b65733
|
|
| BLAKE2b-256 |
ca16d63c838aee74276e0eab512a00c9aecc18a519015f2d37311ec6d1ac6704
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mg_ismart_india_client-0.1.1.tar.gz -
Subject digest:
d205496bc1c1c6f250ecc80a358d8fed40b6bfb61d099e12391ed3717f07fa49 - Sigstore transparency entry: 2094720367
- Sigstore integration time:
-
Permalink:
john-lazarus/mg-ismart-india-client@c790bf3c938382b7541bcfc628abdb496ad92796 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/john-lazarus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c790bf3c938382b7541bcfc628abdb496ad92796 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mg_ismart_india_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mg_ismart_india_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f86617f5d3e6282ac37496540b048b1dcb0331f679d79598c5d944534b849a8
|
|
| MD5 |
643dbe8d3c3d2f8f5f533581ab6d25f4
|
|
| BLAKE2b-256 |
52c50011e097843f97498ff58e2e5ac78f2a2e0aed647a0e03e11aa60cc2e625
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mg_ismart_india_client-0.1.1-py3-none-any.whl -
Subject digest:
3f86617f5d3e6282ac37496540b048b1dcb0331f679d79598c5d944534b849a8 - Sigstore transparency entry: 2094720825
- Sigstore integration time:
-
Permalink:
john-lazarus/mg-ismart-india-client@c790bf3c938382b7541bcfc628abdb496ad92796 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/john-lazarus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c790bf3c938382b7541bcfc628abdb496ad92796 -
Trigger Event:
release
-
Statement type: