Skip to content

Inertial export, streaming to file, events per phase, sensor assignment, statistics (0.3.0) - #14

Merged
mad4ms merged 1 commit into
mainfrom
feat/exports-statistics
Oct 26, 2026
Merged

mad4ms merged 1 commit into
mainfrom
feat/exports-statistics

Conversation

@mad4ms

@mad4ms mad4ms commented Oct 26, 2026

Copy link
Copy Markdown
Owner

New HandballAPI methods, all verified live against session 3478 (HBL, 2026-10-11):

  • download_inertial_csv_via_custom — the IMU export: game time, x/y/z, heart rate, RR intervals, accelerometer, gyroscope, quaternion per sensor
  • download_export_to_file(kind, session_id, path) — streams a positions or inertial export to disk via .part + rename
  • get_events / get_event_counts for a session or a phase; reaches change_of_orientation (942 events), which is missing from the statistics list
  • get_sensor_assignment, get_player_statistics (per session or half, 244 metrics), get_session_categories

The positions download now shares the streaming code in exports.py; its signature and behaviour are unchanged. Unit tests use an httpx.MockTransport. Ruff 0.17 flags the public positional constructor (PLR0917); ignored in the config rather than breaking callers.

Version 0.3.0 — tag v0.3.0 after merge publishes to PyPI.

🤖 Generated with Claude Code

…signment, statistics

- download_inertial_csv_via_custom: the IMU export (game time, x/y/z,
  heart rate, accelerometer, gyroscope, quaternion per sensor)
- download_export_to_file: streams a positions or inertial export to disk
  via a .part file, so a full game is never held in memory
- get_events / get_event_counts for a session or a phase; reaches types
  missing from the statistics list, e.g. change_of_orientation
- get_sensor_assignment, get_player_statistics (session or half),
  get_session_categories
- the positions download now shares the streaming code in exports.py
- ruff: ignore PLR0917 (ruff 0.17 flags the public positional constructor)

Bump to 0.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mad4ms
mad4ms merged commit 8a1d7fc into main Oct 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant