nfl-bigquery
NFL play-by-play → BigQuery. Idempotent nflverse ingestion + LLM-friendly docs + verification.
Fourth in the *-bigquery family (statcast-bigquery, nhl-bigquery, yfinance-bigquery).
Install
pip install nfl-bigquery
gcloud auth application-default login
Sync
# Backfill 1999–present into a shared dataset (idempotent, resumable)
nfl-bigquery sync --seasons 1999-2025 --resume \
--pbp-table myproject.mydataset.nfl_plays
# Player dimension
nfl-bigquery players --players-table myproject.mydataset.dim_players
Writes nfl_plays, games, weekly_player_stats (season-chunked DELETE→INSERT) and
dim_players (MERGE on gsis_id), plus a _nfl_ingest_runs log for --resume.
Docs & verify
nfl-bigquery docs --format llm
nfl-bigquery docs --format bq-apply --table myproject.mydataset.nfl_plays
nfl-bigquery verify --source internal --season 2024 \
--pbp-table myproject.mydataset.nfl_plays
The verify command runs 8 checks: duplicate-play detection, orphan-play detection, and
plays→weekly reconciliation for passing/rushing/receiving yards and TDs (6 metrics).
The --tolerance flag (default 0.0) sets the maximum allowed absolute aggregate diff;
lateral plays cause small legitimate yard diffs, so consider --tolerance 5 for yards.
Data source
All data from nflverse via nflreadpy. Play-by-play is
nflfastR's 372-column feed (EPA/WPA/air-yards/CPOE modeled), back to 1999.
MIT licensed.
Metadata
Release files for nfl-bigquery 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nfl_bigquery-0.1.1.tar.gz | 313.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nfl_bigquery-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 352.0 kB
Release files / nfl_bigquery-0.1.1.tar.gz
| Download URL | nfl_bigquery-0.1.1.tar.gz |
|---|---|
| Size | 313.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aab8b19d22b73430e8e56eb4bd6ff134fab8e8e69ba19fc444209eb6757dffc7
|
|
BLAKE2b-256 checksum How to use checksums |
f4072a46ae21df5fc64ef23ee485c869e721967b146e7fe36edf2a5e35f8a64b
|
| 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 15, 2026.
Transparency logRelease files / nfl_bigquery-0.1.1-py3-none-any.whl
| Download URL | nfl_bigquery-0.1.1-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbf5ea1011a55337a5c5528e25f542dad4c9cf23b2e0f0e7f36ff743ca2e103a
|
|
BLAKE2b-256 checksum How to use checksums |
ca17918efc6c2d992c6b3f270b033b853f0c00e22fa20b2955ff54a11bbb8791
|
| 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 15, 2026.
Transparency log