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

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.3
File Size Uploaded Provenance Actions
nfl_bigquery-0.1.3.tar.gz 313.9 kB With provenance Details for nfl_bigquery-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 354.7 kB

Release files / nfl_bigquery-0.1.3.tar.gz

Download URL nfl_bigquery-0.1.3.tar.gz
Size 313.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6083189e18c714141e6f95757d8eaff7becad163a57690e5a69bfc0748dc848a
BLAKE2b-256 checksum
How to use checksums
12e325cf216318a0f535a466339c445e9f7a254730b5675f8abb79629c3165aa
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.3-py3-none-any.whl

Download URL nfl_bigquery-0.1.3-py3-none-any.whl
Size 40.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
184292d1f7396e06a4a2257fbed4706715f4e4ce7a607a702032ea4db6825986
BLAKE2b-256 checksum
How to use checksums
e4f65f1041744932bd48487ec8ebbfe31f8c8f2ec376002e21c5403d42008c17
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.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

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

Select from 2 files

Attestation for nfl_bigquery-0.1.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 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