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.8.0.tar.gz
(47.0 kB
view details)
Built Distribution
File details
Details for the file pypolestar-1.8.0.tar.gz
.
File metadata
- Download URL: pypolestar-1.8.0.tar.gz
- Upload date:
- Size: 47.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ceaadca07b2d66a9a39f87fc087efe6a9390b74de5f883ad55a45ca209398611
|
|
MD5 |
558f00bfb838faa84f936aa6dc45deb9
|
|
BLAKE2b-256 |
fe241f5e061acd0a5cdddfb3b17faff78f7e2a2501dc47c889a6dc09e044f6f4
|
Provenance
The following attestation bundles were made for pypolestar-1.8.0.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.8.0.tar.gz
-
Subject digest:
ceaadca07b2d66a9a39f87fc087efe6a9390b74de5f883ad55a45ca209398611
- Sigstore transparency entry: 216883661
- Sigstore integration time:
-
Permalink:
pypolestar/pypolestar@41c338ddfe16757bed14c7dbcc3e2b025e602c14
-
Branch / Tag:
refs/tags/1.8.0
- Owner: https://github.com/pypolestar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@41c338ddfe16757bed14c7dbcc3e2b025e602c14
-
Trigger Event:
release
-
Statement type:
File details
Details for the file pypolestar-1.8.0-py3-none-any.whl
.
File metadata
- Download URL: pypolestar-1.8.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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
17da6353ae3e65092a3b9a5a6fb019a6b20d53082c504a1fc3ffa08bfa57309b
|
|
MD5 |
f53e31ef42b5cfcef903615d0d928c4b
|
|
BLAKE2b-256 |
3e929d4fce385215ba270fa9eb4efc040824e39603e3804cadcbb0ae87a170d2
|
Provenance
The following attestation bundles were made for pypolestar-1.8.0-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.8.0-py3-none-any.whl
-
Subject digest:
17da6353ae3e65092a3b9a5a6fb019a6b20d53082c504a1fc3ffa08bfa57309b
- Sigstore transparency entry: 216883666
- Sigstore integration time:
-
Permalink:
pypolestar/pypolestar@41c338ddfe16757bed14c7dbcc3e2b025e602c14
-
Branch / Tag:
refs/tags/1.8.0
- Owner: https://github.com/pypolestar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@41c338ddfe16757bed14c7dbcc3e2b025e602c14
-
Trigger Event:
release
-
Statement type: