nhl-bigquery
Idempotent NHL play-by-play (with on-ice arrays merged from shift-charts) → BigQuery ingestion, with first-class documentation for SQL/LLM agents and verification against the NHL public API.
Install
pip install nhl-bigquery
Quickstart
gcloud auth application-default login
nhl-bigquery sync \
--start 2024-10-01 --end 2025-06-30 \
--plays-table myproject.mydataset.nhl_plays
This writes six tables to myproject.mydataset.*:
nhl_plays— one row per event, withhome_on_ice_ids/away_on_ice_idsarraysgames— schedule dimensiongame_officials— referees + linesmen per gameboxscore_stats— per-player per-game statsshifts— per-shift per-player intervalsstandings— daily team-standings snapshots
Backfill
Backfill 15 seasons in resumable monthly chunks:
nhl-bigquery sync \
--start 2010-10-01 --end 2026-05-11 \
--chunk-by month --resume \
--plays-table myproject.mydataset.nhl_plays
--resume skips chunks already recorded as success or empty in
<dataset>._nhl_ingest_runs. Re-running with the same --chunk-by is
safe; switching between runs will re-process (chunks must match exactly).
Documentation
nhl-bigquery docs --format llm > NHL_FOR_LLMS.md
nhl-bigquery docs --format bq-apply --table myproject.mydataset.nhl_plays
Five formats: bq-apply (push descriptions to BigQuery), llm (one
Markdown file packing every column for LLM context), dictionary
(JSON rows for a data dictionary table), markdown (human reference),
and dbt (dbt YAML schema stub).
Verification
nhl-bigquery verify --source internal \
--aggregation internal-consistency \
--table myproject.mydataset.nhl_plays
nhl-bigquery verify --source nhl-api \
--aggregation team-season --metric all --season 2024 \
--table myproject.mydataset.nhl_plays
MIT licensed. This software does not include or distribute NHL data.
Metadata
Release files for nhl-bigquery 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nhl_bigquery-0.2.3.tar.gz | 265.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nhl_bigquery-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 322.9 kB
Release files / nhl_bigquery-0.2.3.tar.gz
| Download URL | nhl_bigquery-0.2.3.tar.gz |
|---|---|
| Size | 265.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33263e74e20ae65a8a5dde5c351bd5afd0e3faa94eab19015c8860b4d47d8cb2
|
|
BLAKE2b-256 checksum How to use checksums |
5fa3cdf6029b4f18bd8de95629e3c645741e12275c8b152520e2e72f5a407397
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / nhl_bigquery-0.2.3-py3-none-any.whl
| Download URL | nhl_bigquery-0.2.3-py3-none-any.whl |
|---|---|
| Size | 57.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cfaf3284e7daa9fef7014c3d8ad72ff8c5ac2788346597ec5eee4b65f4b6c80
|
|
BLAKE2b-256 checksum How to use checksums |
8f55da4ba59a6f9c38416018e5583845b70202b5b66453f39f88dd22f0a14268
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logSecurity for nhl-bigquery 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nhl_bigquery-0.2.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.