Skip to main content

Async Python client for ScorpionTrack shared-location links.

Project description

pyscorpiontrack

CI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyscorpiontrack-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyscorpiontrack-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pyscorpiontrack-0.1.0.tar.gz.

File metadata

  • Download URL: pyscorpiontrack-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pyscorpiontrack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c2c1e136ca64fd7206b0741386f098e0d03f10bc94378bc0502e55061acf983
MD5 e2f5f1d1441eb34d8f456da405302941
BLAKE2b-256 51706381aef6e484d695ec7b7ac3186f699146ed8dec74744ec47f8839e70b67

See more details on using hashes here.

File details

Details for the file pyscorpiontrack-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyscorpiontrack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd445edc9116fa4418a122b7a513b93c9ed6c2b272ea573164d4cd5764b00850
MD5 3a144fd1c75740f0933e188689d37b5b
BLAKE2b-256 9392782be22c5722691cc4e7c6b825cc44807af5d2ad48fb4b683553d0e1a7da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page