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.0.tar.gz
(13.6 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2aad02fe4dcdd958c6757fb7a71aa676ef4562f8b716eeaf3674cfb8d7636ef |
|
MD5 | c2b2d9f4075dda25ae732e781113bf17 |
|
BLAKE2b-256 | 5ed539891e30921668089f34527c91d67fb2f69da0d43cc9124d2247a15bb593 |
Provenance
The following attestation bundles were made for pypolestar-1.7.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.7.0.tar.gz
- Subject digest:
d2aad02fe4dcdd958c6757fb7a71aa676ef4562f8b716eeaf3674cfb8d7636ef
- Sigstore transparency entry: 173767436
- Sigstore integration time:
- Permalink:
pypolestar/pypolestar@f470af21005691eb7173499b580c1661f014a159
- Branch / Tag:
refs/tags/1.7.0
- Owner: https://github.com/pypolestar
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@f470af21005691eb7173499b580c1661f014a159
- Trigger Event:
release
- Statement type:
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8b0860c52fa8cc68b3a18fcb3958db228d78329c04f8bf5241f2cfaf0c1dff |
|
MD5 | e11e3630f1f66d1644f9c1f9068bd579 |
|
BLAKE2b-256 | 7cf9e1d879175ef7fa992262f97135a3eaabc53d96ef7a64930323e7f2fff9d9 |
Provenance
The following attestation bundles were made for pypolestar-1.7.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.7.0-py3-none-any.whl
- Subject digest:
4b8b0860c52fa8cc68b3a18fcb3958db228d78329c04f8bf5241f2cfaf0c1dff
- Sigstore transparency entry: 173767437
- Sigstore integration time:
- Permalink:
pypolestar/pypolestar@f470af21005691eb7173499b580c1661f014a159
- Branch / Tag:
refs/tags/1.7.0
- Owner: https://github.com/pypolestar
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@f470af21005691eb7173499b580c1661f014a159
- Trigger Event:
release
- Statement type: