Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nfl-bigquery 0.1.2
File Size Uploaded Provenance Actions
nfl_bigquery-0.1.2.tar.gz 311.8 kB With provenance Details for nfl_bigquery-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nfl-bigquery 0.1.2
File Interpreter ABI Platform Actions
nfl_bigquery-0.1.2-py3-none-any.whl Python 3 none any Details for nfl_bigquery-0.1.2-py3-none-any.whl

Total release size: 351.6 kB

Release files / nfl_bigquery-0.1.2.tar.gz

Download URL nfl_bigquery-0.1.2.tar.gz
Size 311.8 kB
Tags Source
SHA-256 checksum
How to use checksums
09995c5426bb2c438fbcb38beb9c9c6a209e49f29eb1774c099ee26112900c8b
BLAKE2b-256 checksum
How to use checksums
a1c87ac3bac5653fff072707ce72a5e067643b1dc0f1b1d05c7de93da22676ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Release files / nfl_bigquery-0.1.2-py3-none-any.whl

Download URL nfl_bigquery-0.1.2-py3-none-any.whl
Size 39.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a3b6499a7a0e609ce5952df737be3dfc7d82f8c5b73ce14bc1cfcfb4c683ee7
BLAKE2b-256 checksum
How to use checksums
2270aeccf4b95b49d9cc47f65cd3268f516a73aef0df49c4147280d7630b2ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for nfl-bigquery 0.1.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nfl_bigquery-0.1.2.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 Nov 21, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page