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.8

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.8
File Size Uploaded Provenance Actions
mg_saic_client-0.9.8.tar.gz 26.0 kB With provenance Details for mg_saic_client-0.9.8.tar.gz

Built distribution (wheel)

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

Total release size: 61.6 kB

Release files / mg_saic_client-0.9.8.tar.gz

Download URL mg_saic_client-0.9.8.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4d52f5c0777826dc2b2405c915c833e9e33ff10fa390a0bb57de2e949d5f2795
BLAKE2b-256 checksum
How to use checksums
df3801f2bd4205f401e698d7263df56c87f0dce32867d18cd4e482ddc50bc63e
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 Nov 7, 2026.

Transparency log

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

Download URL mg_saic_client-0.9.8-py3-none-any.whl
Size 35.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a6eb3aa9a5ea9357bd134cb3b04fcbcd598168148b7719b71cf75d88e6021b3
BLAKE2b-256 checksum
How to use checksums
bb6380635eda733dee0e2c5a63130fb7cb283adff816c9c5f34b18dd91c50004
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 Nov 7, 2026.

Transparency log

Security for mg-saic-client 0.9.8

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.8.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 Nov 7, 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