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.2.tar.gz (9.7 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.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

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

Hashes for pyscorpiontrack-0.1.2.tar.gz
Algorithm Hash digest
SHA256 80b5e5943bbe450a57a45517dddba486a66b52b6f080d0b4347a19810ed49d7d
MD5 110a03b6b0eee1a679a312b04f244310
BLAKE2b-256 d8b68911ca95a999731ec07129e24bbffca580a746b019280879b76bb7fb7423

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyscorpiontrack-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyscorpiontrack-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83353e9c42dcef47313524c2e96638e93cac07770a1cd217b0d6efaa193daefd
MD5 858ab941a2d9298167a90f853fba0bac
BLAKE2b-256 9f275c91113cf027dc7f4720f36afafe64f154d6ced14e8185968c6f90e0de9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyscorpiontrack-0.1.2-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