Skip to main content

SAIC Python client library

About

A Python package for interacting with the MG iSmart API.

MG iSmart is the connectivity system in your MG car (MG5 MG4, ZS, MGS5, MGS6 ...).

Supported functionality (partial list, check the code for more)

  • login
  • set alarm switches
  • get message list
  • get vehicle status
  • get cached vehicle status (SAIC's stored copy; does not wake the car)
  • get charging status
  • lock vehicle
  • unlock vehicle
  • start rear window heating
  • stop rear window heating
  • remote climate
  • heated seats: each seat on its own, front and rear, plus rear seat status
  • heated steering wheel
  • door windows: close, ventilate or fully open

Errors

Every error is a SaicApiException (or a subclass). Besides the message text, it carries SAIC's reply as separate values, so you don't need to parse the text:

  • return_code: SAIC's numeric code (see SaicReturnCode), or None
  • saic_message: the message on its own
  • checks for the common cases: is_vehicle_unreachable (code 4), is_request_rejected (code 8), is_vehicle_not_locked, is_logged_out and is_unexpected_failure

Prerequisites

You have an iSmart account (can be created in the iSmart app)

Credit

This is a maintained fork of SAIC-iSmart-API/saic-python-client-ng by Giovanni Condello, used by the mg-saic-ha Home Assistant integration. Licensed under MIT; see LICENSE.

Metadata

Release files for mg-saic-client 0.9.7

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

Source distribution (sdist)

Source distribution for mg-saic-client 0.9.7
File Size Uploaded Provenance Actions
mg_saic_client-0.9.7.tar.gz 25.6 kB With provenance Details for mg_saic_client-0.9.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mg-saic-client 0.9.7
File Interpreter ABI Platform Actions
mg_saic_client-0.9.7-py3-none-any.whl Python 3 none any Details for mg_saic_client-0.9.7-py3-none-any.whl

Total release size: 60.5 kB

Release files / mg_saic_client-0.9.7.tar.gz

Download URL mg_saic_client-0.9.7.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
090600c90c490ef6603d4499164d0a1c86d24858f5f6fe584ae293b197bb1b5d
BLAKE2b-256 checksum
How to use checksums
34ee148a7b2f917f36427fb3ad19f6a9da9d42af7847f52c5e787643e70f0425
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / mg_saic_client-0.9.7-py3-none-any.whl

Download URL mg_saic_client-0.9.7-py3-none-any.whl
Size 34.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a20cba05c4cf87bf0d48dc8f1554fe9a10f7bb72f5b9960e199a09896ad1d555
BLAKE2b-256 checksum
How to use checksums
c5b86b7d3cba312904bc74d42a3884afc22c1c0db563b938f760a1786fbc9741
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for mg-saic-client 0.9.7

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mg_saic_client-0.9.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

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