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.7.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

pypolestar-1.7.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pypolestar-1.7.0.tar.gz
Algorithm Hash digest
SHA256 d2aad02fe4dcdd958c6757fb7a71aa676ef4562f8b716eeaf3674cfb8d7636ef
MD5 c2b2d9f4075dda25ae732e781113bf17
BLAKE2b-256 5ed539891e30921668089f34527c91d67fb2f69da0d43cc9124d2247a15bb593

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypolestar-1.7.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.7.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pypolestar-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b8b0860c52fa8cc68b3a18fcb3958db228d78329c04f8bf5241f2cfaf0c1dff
MD5 e11e3630f1f66d1644f9c1f9068bd579
BLAKE2b-256 7cf9e1d879175ef7fa992262f97135a3eaabc53d96ef7a64930323e7f2fff9d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypolestar-1.7.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