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.4.0.tar.gz
(13.2 kB
view details)
Built Distribution
File details
Details for the file pypolestar-1.4.0.tar.gz
.
File metadata
- Download URL: pypolestar-1.4.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7193e4279684916b81cf288e3a5408f4a96946b09c9ec5da3f0d8995d3bbe0ff |
|
MD5 | 6e205bed0749abc57fa761911e6def1b |
|
BLAKE2b-256 | 3a8c6d23f8b39712281f8c6034c70c1dac5f674964c4b1a25aef3f28c4be33b9 |
Provenance
The following attestation bundles were made for pypolestar-1.4.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.4.0.tar.gz
- Subject digest:
7193e4279684916b81cf288e3a5408f4a96946b09c9ec5da3f0d8995d3bbe0ff
- Sigstore transparency entry: 166711356
- Sigstore integration time:
- Permalink:
pypolestar/pypolestar@ce05fe10405b1036e8d2fc26f56eebeacf45a89a
- Branch / Tag:
refs/tags/1.4.0
- Owner: https://github.com/pypolestar
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@ce05fe10405b1036e8d2fc26f56eebeacf45a89a
- Trigger Event:
release
- Statement type:
File details
Details for the file pypolestar-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: pypolestar-1.4.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89531f39accef316dbfbb8be463c09dc3122023be35ad7fcc4798271a1e7aece |
|
MD5 | a8d4b714816f601dd18a971f6f2a298f |
|
BLAKE2b-256 | 6e8644786b4e1926f54b394e682af53c97d0b9b2d99da64bb0cb6c32846975df |
Provenance
The following attestation bundles were made for pypolestar-1.4.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.4.0-py3-none-any.whl
- Subject digest:
89531f39accef316dbfbb8be463c09dc3122023be35ad7fcc4798271a1e7aece
- Sigstore transparency entry: 166711358
- Sigstore integration time:
- Permalink:
pypolestar/pypolestar@ce05fe10405b1036e8d2fc26f56eebeacf45a89a
- Branch / Tag:
refs/tags/1.4.0
- Owner: https://github.com/pypolestar
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@ce05fe10405b1036e8d2fc26f56eebeacf45a89a
- Trigger Event:
release
- Statement type: