Skip to main content

Python API Client for FCA/Stellantis cars

Project description

Python client for accessing FCA/Stellantis cars cloud API

Installation

pip3 install py-uconnect

Usage

from py_uconnect import Client
from py_uconnect.brands import BRANDS

# Create client
client = Client('foo@bar.com', 'very_secret', pin='1234', brand=brands.FIAT_EU)
# Fetch the vehicle data into cache
client.refresh()

# List vehicles
vehicles = client.get_vehicles()
for vehicle in vehicles.values():
    print(vehicle.to_json(indent=2))

This would emit something similar to:

{
  "vin": "XXXXXXXXXXXXXXXXXXXX",
  "nickname": "500e",
  "make": "FIAT",
  "model": "Neuer 500",
  "year": 2023,
  "region": "EMEA",
  "ignition_on": false,
  "trunk_locked": true,
  "odometer": 1841,
  "odometer_unit": "km",
  "days_to_service": 325,
  "distance_to_service": 13159.0,
  "distance_to_service_unit": "km",
  "distance_to_empty": 134,
  "distance_to_empty_unit": "km",
  "battery_voltage": 14.875,
  "oil_level": null,
  "fuel_low": false,
  "fuel_amount": null,
  "plugged_in": false,
  "ev_running": false,
  "charging": false,
  "charging_level": 0,
  "charging_level_preference": 5,
  "state_of_charge": 63,
  "time_to_fully_charge_l3": 41,
  "time_to_fully_charge_l2": 96,
  "wheel_front_left_pressure": null,
  "wheel_front_left_pressure_unit": "kPa",
  "wheel_front_left_pressure_warning": false,
  "wheel_front_right_pressure": null,
  "wheel_front_right_pressure_unit": "kPa",
  "wheel_front_right_pressure_warning": false,
  "wheel_rear_left_pressure": null,
  "wheel_rear_left_pressure_unit": "kPa",
  "wheel_rear_left_pressure_warning": false,
  "wheel_rear_right_pressure": null,
  "wheel_rear_right_pressure_unit": "kPa",
  "wheel_rear_right_pressure_warning": false,
  "door_driver_locked": true,
  "door_passenger_locked": true,
  "door_rear_left_locked": true,
  "door_rear_right_locked": true,
  "window_driver_closed": true,
  "window_passenger_closed": true,
  "location": {
    "longitude": 1.580266952514648,
    "latitude": 1.36115264892578,
    "altitude": 0,
    "bearing": 0,
    "is_approximate": false,
    "updated": 1738660203.634
  },
  "supported_commands": [
    "RDL",
    "RDU",
    "VF",
    "ROLIGHTS",
    "CNOW",
    "DEEPREFRESH",
    "ROPRECOND",
    "ROTRUNKUNLOCK",
    "ROPRECOND_OFF"
  ]
}

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

py_uconnect-0.2.4.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_uconnect-0.2.4-py2.py3-none-any.whl (15.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file py_uconnect-0.2.4.tar.gz.

File metadata

  • Download URL: py_uconnect-0.2.4.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for py_uconnect-0.2.4.tar.gz
Algorithm Hash digest
SHA256 014a3f492fb47d3e6a22974e22caf031d6fba6b2cbade1de0fcfee9293eaa43f
MD5 f50a02358dbd891b13c1fc8d656a6b35
BLAKE2b-256 e9f29b56e087dbbfb8b74a8ffc69a18023011b8ad934ccc880ffeaca8284857e

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_uconnect-0.2.4.tar.gz:

Publisher: pypi.yml on hass-uconnect/py-uconnect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_uconnect-0.2.4-py2.py3-none-any.whl.

File metadata

  • Download URL: py_uconnect-0.2.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for py_uconnect-0.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 afb7a12180dd86b8fab5958ea445d925cf8ee1b1d9d43a3aea3d89c4739cacfd
MD5 34fc8d0a50bd116ce70d3131962598b7
BLAKE2b-256 ca9cddc2f0c0f3e2e2cb77096206b0ae8625a61a4d92a0a5e426c29097308bf8

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_uconnect-0.2.4-py2.py3-none-any.whl:

Publisher: pypi.yml on hass-uconnect/py-uconnect

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