Async Python client for ScorpionTrack shared-location links.
Project description
pyscorpiontrack
pyscorpiontrack is a small async Python client for ScorpionTrack shared-location links.
This package exists to support a clean Home Assistant Core integration for the public ScorpionTrack share-link flow. It intentionally focuses on the read-only location-share endpoint rather than the private authenticated portal path.
Scope
- accepts either a raw ScorpionTrack share token or a full shared-location URL
- fetches the active share payload from the same endpoint the ScorpionTrack share page uses
- normalizes shares, vehicles, and position data into typed dataclasses
- raises explicit exceptions for connectivity problems, invalid tokens, and expired or unavailable shares
Example
from aiohttp import ClientSession
from pyscorpiontrack import ScorpionTrackClient
async def main() -> None:
async with ClientSession() as session:
client = ScorpionTrackClient(session=session, token="YOUR_SHARE_TOKEN")
share = await client.async_get_share()
print(share.title)
for vehicle in share.vehicles:
print(vehicle.display_name, vehicle.status)
Why this repo exists
Home Assistant Core expects service communication to live in an external Python library. This package is the extraction of the ScorpionTrack share-link logic into a reusable dependency so the Home Assistant integration can stay focused on config flows, entities, diagnostics, and platform behavior.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyscorpiontrack-0.1.2.tar.gz.
File metadata
- Download URL: pyscorpiontrack-0.1.2.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80b5e5943bbe450a57a45517dddba486a66b52b6f080d0b4347a19810ed49d7d
|
|
| MD5 |
110a03b6b0eee1a679a312b04f244310
|
|
| BLAKE2b-256 |
d8b68911ca95a999731ec07129e24bbffca580a746b019280879b76bb7fb7423
|
Provenance
The following attestation bundles were made for pyscorpiontrack-0.1.2.tar.gz:
Publisher:
publish.yml on Herbertmt978/python-scorpiontrack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyscorpiontrack-0.1.2.tar.gz -
Subject digest:
80b5e5943bbe450a57a45517dddba486a66b52b6f080d0b4347a19810ed49d7d - Sigstore transparency entry: 2155643395
- Sigstore integration time:
-
Permalink:
Herbertmt978/python-scorpiontrack@fb8ea7be558bfab080750c2cd2fbf189afbc7c37 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Herbertmt978
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fb8ea7be558bfab080750c2cd2fbf189afbc7c37 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyscorpiontrack-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pyscorpiontrack-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83353e9c42dcef47313524c2e96638e93cac07770a1cd217b0d6efaa193daefd
|
|
| MD5 |
858ab941a2d9298167a90f853fba0bac
|
|
| BLAKE2b-256 |
9f275c91113cf027dc7f4720f36afafe64f154d6ced14e8185968c6f90e0de9f
|
Provenance
The following attestation bundles were made for pyscorpiontrack-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Herbertmt978/python-scorpiontrack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyscorpiontrack-0.1.2-py3-none-any.whl -
Subject digest:
83353e9c42dcef47313524c2e96638e93cac07770a1cd217b0d6efaa193daefd - Sigstore transparency entry: 2155643446
- Sigstore integration time:
-
Permalink:
Herbertmt978/python-scorpiontrack@fb8ea7be558bfab080750c2cd2fbf189afbc7c37 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Herbertmt978
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fb8ea7be558bfab080750c2cd2fbf189afbc7c37 -
Trigger Event:
release
-
Statement type: