Skip to main content

Utilities for MyLaps Event Results API.

Project description

speedhive-tools

CLI toolkit and Python library for the MyLaps Speedhive API.

Install

pip install speedhive-tools

Develop

git clone https://github.com/ncrosty58/speedhive-tools.git
cd speedhive-tools
python -m venv .venv
source .venv/bin/activate
pip install -e .

Common Commands

speedhive sync-org --org 30476
speedhive report-consistency --org 30476
speedhive extract-driver-laps --org 30476 --driver "Firstname Lastname"
speedhive export-track-records --org 30476
speedhive scan-track-records --org 30476
speedhive refresh-track-records --org 30476
speedhive export-dump --org 30476 --output ./output
speedhive import-dump --org 30476 --dump-dir ./output
speedhive export-curated-track-records --org 30476 --output ./curated.ndjson
speedhive import-curated-track-records --org 30476 --input ./curated.ndjson

Run speedhive --help for the full command list.

Python

from speedhive.wrapper import SpeedhiveClient

client = SpeedhiveClient.create(token="your-api-token")
events = client.get_events(org_id=30476, limit=5)

Package Layout

src/speedhive/
├── analysis/      # Shared parsing and computation helpers
├── analyzers/     # Read-only reports
├── cli/           # CLI entry points
├── exporters/     # NDJSON and file exporters
├── stores/        # Workflow file persistence
└── workflows/     # Sync, import, and track-record orchestration

Notes

  • SQLite is the main local cache.
  • NDJSON is used for exports and curated track-record workflow files.
  • The UI repo uses this package as a submodule.

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

speedhive_tools-0.9.1.tar.gz (100.4 kB view details)

Uploaded Source

Built Distribution

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

speedhive_tools-0.9.1-py3-none-any.whl (205.0 kB view details)

Uploaded Python 3

File details

Details for the file speedhive_tools-0.9.1.tar.gz.

File metadata

  • Download URL: speedhive_tools-0.9.1.tar.gz
  • Upload date:
  • Size: 100.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for speedhive_tools-0.9.1.tar.gz
Algorithm Hash digest
SHA256 2dd532e94ae16ea86f2e1e8b2c885962f30ffb76cb5b596e74db3cae1be57601
MD5 aff8be22a4cd992663d4b27290d0948f
BLAKE2b-256 9f0582c3718eba59cd4d242543504d618b96d68c75e4b4dddd0961c0da9da222

See more details on using hashes here.

File details

Details for the file speedhive_tools-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: speedhive_tools-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 205.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for speedhive_tools-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 505e9ea2198f905b7e878cd351b44cb3864b2f31f8ce664e3dd907dc67251ae1
MD5 02006f52cf7345d9cd7d8923e9f84a19
BLAKE2b-256 c71ad6eb07d5fbcec4d7bc09f382e45732e7dd6b6c743fd7dba13cd116013c1b

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