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

Presets are classmethods on SaicApiConfiguration. Each takes (username, password, **overrides).

Preset base_uri region tenant_id device_app_id
mg_eu() https://gateway-mg-eu.soimt.com/api.app/v1/ eu 459771 com.saicmotor.europecar
mg_au() https://gateway-mg-au.soimt.com/api.app/v1/ au 459771 com.saicmotor.europecar
mg_tr() https://gateway-mg-tr.soimt.com/api.app/v1/ tr 459771 com.saicmotor.europecar
mg_br() https://gateway-mg-br.soimt.com/api.app/v1/ br 459771 com.saicmotor.europecar
maxus_eu() https://gateway-maxus-eu.soimt.com/api.app/v1/ eu 590224 com.saicmaxus.ismarteu

MAXUS Europe vehicles use the same API. The maxus_eu() values were confirmed by a live traffic capture of the MAXUS app.

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

  • login
  • set alarm switches
  • get message list
  • get vehicle status
  • get cached vehicle status (does not wake the car)
  • get charging status
  • lock vehicle
  • unlock vehicle
  • unlock the tailgate (releases the latch), or open and close a power tailgate
  • door windows: close, ventilate (open a few centimetres) or fully open
  • 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

Prerequisites

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

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

Metadata

Release files for saic_ismart_client_ng 0.16.0

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

Source distribution (sdist)

Source distribution for saic_ismart_client_ng 0.16.0
File Size Uploaded Provenance Actions
saic_ismart_client_ng-0.16.0.tar.gz 26.7 kB Without provenance Details for saic_ismart_client_ng-0.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for saic_ismart_client_ng 0.16.0
File Interpreter ABI Platform Actions
saic_ismart_client_ng-0.16.0-py3-none-any.whl Python 3 none any Details for saic_ismart_client_ng-0.16.0-py3-none-any.whl

Total release size: 62.8 kB

Release files / saic_ismart_client_ng-0.16.0.tar.gz

Download URL saic_ismart_client_ng-0.16.0.tar.gz
Size 26.7 kB
Tags Source
SHA-256 checksum
How to use checksums
080c775dbb618a9fd196f5f630b235dc807e21faee6b002694be2de2bc502c11
BLAKE2b-256 checksum
How to use checksums
b7cdeee045acf32dbd53194bb9c692f7d7dcd9a9b65432bfa25d17b752ad6ef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.13.1 Linux/7.0.0-1019-azure

Release files / saic_ismart_client_ng-0.16.0-py3-none-any.whl

Download URL saic_ismart_client_ng-0.16.0-py3-none-any.whl
Size 36.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
082b5cb730b81f0a1dd8debe9a6dee4bd75c45ef159076bd653671d47cea9f48
BLAKE2b-256 checksum
How to use checksums
b4b00a6e4c89edfb5455a9b118b869adaa2fb3a3a580ecbfe1df6206698272a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.13.1 Linux/7.0.0-1019-azure

Security for saic_ismart_client_ng 0.16.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.16.0 This release

2 release files No provenance

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