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.1.tar.gz (7.9 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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyscorpiontrack-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyscorpiontrack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b8fb958823aa5040eea354bd0f4b4c2002ce3dfacfcfecc50ce08f5252334245
MD5 844a9f89bb9a4e949ecbf9542d3add64
BLAKE2b-256 36983c44c033c3bf51e5838b727e495930eea5642748c0fa450b25c5a983a130

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyscorpiontrack-0.1.1.tar.gz:

Publisher: publish.yml on Herbertmt978/python-scorpiontrack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyscorpiontrack-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c4553a11e8863a10bc0004f4eec43479ae05a9c49d853191c0bdca00622677
MD5 d44799c66b019637643ab1a80855d356
BLAKE2b-256 42dee465b8994d299a72f27f6c8174de8abbb78b21677165b052a01105ec9b72

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyscorpiontrack-0.1.1-py3-none-any.whl:

Publisher: publish.yml on Herbertmt978/python-scorpiontrack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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