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.2.tar.gz
(17.5 kB
view details)
Built Distribution
File details
Details for the file pypolestar-1.7.2.tar.gz
.
File metadata
- Download URL: pypolestar-1.7.2.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 | bf5ea0ea0ba63508f8522182ce26fb80e623ba75cfbbdb86a5bfedaf1f7f9bf0 |
|
MD5 | 080b5b301a09e6950b1bda0d3c06db0f |
|
BLAKE2b-256 | ed71b81ebd93aa1dd41edc56857a0c1a205613c16e386f1364274d415d32493e |
Provenance
The following attestation bundles were made for pypolestar-1.7.2.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.2.tar.gz
- Subject digest:
bf5ea0ea0ba63508f8522182ce26fb80e623ba75cfbbdb86a5bfedaf1f7f9bf0
- Sigstore transparency entry: 197484902
- Sigstore integration time:
- Permalink:
pypolestar/pypolestar@144a5142925d7ef0718e1ae5ce6d48a711d12e76
- Branch / Tag:
refs/tags/1.7.2
- Owner: https://github.com/pypolestar
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@144a5142925d7ef0718e1ae5ce6d48a711d12e76
- Trigger Event:
release
- Statement type:
File details
Details for the file pypolestar-1.7.2-py3-none-any.whl
.
File metadata
- Download URL: pypolestar-1.7.2-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 | e5674955bc3ddb80fff34357a8eaa44e164358b493dc0a20ba1dc94e8409175e |
|
MD5 | 0bac18da08fd98615fab433913336b24 |
|
BLAKE2b-256 | 33a47ff431a73ab72ee4382711fae56f2f4f34424e48784eb0dc3639eee03531 |
Provenance
The following attestation bundles were made for pypolestar-1.7.2-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.2-py3-none-any.whl
- Subject digest:
e5674955bc3ddb80fff34357a8eaa44e164358b493dc0a20ba1dc94e8409175e
- Sigstore transparency entry: 197484916
- Sigstore integration time:
- Permalink:
pypolestar/pypolestar@144a5142925d7ef0718e1ae5ce6d48a711d12e76
- Branch / Tag:
refs/tags/1.7.2
- Owner: https://github.com/pypolestar
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@144a5142925d7ef0718e1ae5ce6d48a711d12e76
- Trigger Event:
release
- Statement type: