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
Release history Release notifications | RSS feed
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.1.tar.gz
(17.5 kB
view details)
Built Distribution
File details
Details for the file pypolestar-1.7.1.tar.gz
.
File metadata
- Download URL: pypolestar-1.7.1.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c253c84a46b0f42bd294d74ef3c5dea9efa48578a579aa8eb320baa7591e9dc |
|
MD5 | d4a8df5377215c08c700e3e61bf35fa8 |
|
BLAKE2b-256 | ed404483315dbf3e5aea18b9a8c694644175100bff6c47b041f69f181fa86f24 |
Provenance
The following attestation bundles were made for pypolestar-1.7.1.tar.gz
:
Publisher:
release.yml
on pypolestar/pypolestar
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pypolestar-1.7.1.tar.gz
- Subject digest:
5c253c84a46b0f42bd294d74ef3c5dea9efa48578a579aa8eb320baa7591e9dc
- Sigstore transparency entry: 187382396
- Sigstore integration time:
- Permalink:
pypolestar/pypolestar@adac492aeaf03c6eda6d2685b774cabc3a0f727e
- Branch / Tag:
refs/tags/1.7.1
- Owner: https://github.com/pypolestar
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@adac492aeaf03c6eda6d2685b774cabc3a0f727e
- Trigger Event:
release
- Statement type:
File details
Details for the file pypolestar-1.7.1-py3-none-any.whl
.
File metadata
- Download URL: pypolestar-1.7.1-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 960fe2ff11a428c1e0f052a398e0c61e3d342e89a12818f8b85ee8f8fee96497 |
|
MD5 | e76ba3af232698354156e84925e172cc |
|
BLAKE2b-256 | 0f9fcf734a034e3011e9cb82e51ba0bd61742cbf05109a3bb81385c1d2fe63fb |
Provenance
The following attestation bundles were made for pypolestar-1.7.1-py3-none-any.whl
:
Publisher:
release.yml
on pypolestar/pypolestar
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pypolestar-1.7.1-py3-none-any.whl
- Subject digest:
960fe2ff11a428c1e0f052a398e0c61e3d342e89a12818f8b85ee8f8fee96497
- Sigstore transparency entry: 187382397
- Sigstore integration time:
- Permalink:
pypolestar/pypolestar@adac492aeaf03c6eda6d2685b774cabc3a0f727e
- Branch / Tag:
refs/tags/1.7.1
- Owner: https://github.com/pypolestar
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@adac492aeaf03c6eda6d2685b774cabc3a0f727e
- Trigger Event:
release
- Statement type: