| Crates.io | nflreadrs |
| lib.rs | nflreadrs |
| version | 0.2.1 |
| created_at | 2025-12-26 09:28:25.945981+00 |
| updated_at | 2026-01-02 07:19:00.771784+00 |
| description | Crate to pull data from nflverse's NFL database. |
| homepage | |
| repository | https://github.com/rednokay/nflreadrs |
| max_upload_size | |
| id | 2005454 |
| size | 116,531 |
[!NOTE] This crate is not yet fully functional!
Nflreadrs is a port of nflverse's nflreadpy (Python) and nflreadr (R) libraries to the Rust programming language. Other than liking their work, I am not affiliated with them in any way, shape or form.
Use cargo to add the crate to your project.
cargo add nflreadrs
This is a simple setup to download team stats of the current season. The resulting data will be a Polars DataFrame.
use nflreadrs::downloader::pull;
use nflreadrs::stats::{SummaryLevel, TeamStats};
fn main() {
// Download settings
let teams_stats_dl = TeamStats::new(None, SummaryLevel::Week);
let data = pull(&teams_stats_dl);
}