Skip to main content

Library to control Polestar

Project description

Python for Polestar

This library is not affiliated with nor supported by Polestar.

Data Models

Data models for returned information are described in pypolestar/models.py.

Example

from pypolestar import PolestarApi

api = PolestarApi(username=USERNAME, password=PASSWORD, vins=[VIN])

# initialize API
await api.async_init()

# fetch latest battery & odometer for VIN
await api.update_latest_data(vin=VIN, update_battery=True, update_odometer=True)

# or fetch latest telematics (contains both battery and odometer) for VIN
await api.update_latest_data(vin=VIN, update_telematics=True, update_battery=False, update_odometer=False)

# get specific data for VIN
car_information = api.get_car_information(vin=VIN)
car_battery = api.get_car_battery(vin=VIN)
car_odometer = api.get_car_odometer(vin=VIN)
car_telematics = api.get_car_telematics(vin=VIN)

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

pypolestar-1.6.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

pypolestar-1.6.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file pypolestar-1.6.0.tar.gz.

File metadata

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

File hashes

Hashes for pypolestar-1.6.0.tar.gz
Algorithm Hash digest
SHA256 8e088dcc525e1b0e5fc354ff1ee29cfd6c5cfd3d2b96b297bfd9a6b9a681393b
MD5 ca6ba95095df4c28542f92ff884b2dcd
BLAKE2b-256 0a0a5ce6b1b24849e6a1828bacb6cd14993b9743b70064ced686b41566d1bb29

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypolestar-1.6.0.tar.gz:

Publisher: release.yml on pypolestar/pypolestar

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

File details

Details for the file pypolestar-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: pypolestar-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pypolestar-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8ffb7bfe5cb29e7ab5373ce88f0cd5aec3fa523ebf4dbfc8c7078ba2d6336ea
MD5 f3cb97218ea4fb211dda29f70a0644ef
BLAKE2b-256 d211e9b64de6786107b622d21629bdc3cc522281e58f273993f1a267ce3b5e65

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypolestar-1.6.0-py3-none-any.whl:

Publisher: release.yml on pypolestar/pypolestar

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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page