#live #sport #data #ncaa #college

bin+lib ncaa_data_rs

Tools for fetching and handling NCAA data for multiple sports

9 releases

0.2.1 Mar 21, 2024
0.2.0 Mar 17, 2024
0.1.6 Mar 4, 2024
0.1.4 Feb 29, 2024

#568 in Database interfaces

Download history 12/week @ 2024-02-06 179/week @ 2024-02-13 72/week @ 2024-02-20 405/week @ 2024-02-27 73/week @ 2024-03-05 234/week @ 2024-03-12 197/week @ 2024-03-19 12/week @ 2024-03-26 42/week @ 2024-04-02

493 downloads per month

Custom license

37KB
936 lines

ncaa-data-rs

Rust crate for fetching and parsing data from data.ncaa.com. Optionally this crate could also be used to create a postgresql database extension using the same NCAA data structures. This can be useful to collect and store data to do further processing.

Getting started

Assuming you already have Rust installed, simply clone and install:

git clone git@gitlab.com:flynneva/ncaa-data-rs.git
cd ncaa-data-rs/
cargo install --paths .

After installation you should now have the CLI app ncaa_data_rs installed:

ncaa_data_rs --help

Which should provide some useful functions / features for you to use.

To build and test:

cd ncaa-data-rs/
cargo build
cargo test

postgresql extension

This repository also provides a postgresql extension to make it super easy to create a postgresql database. This extension exposes the custom NCAA data types to the postgresql.

To build the postgresql extension:

cargo pgx init
cargo pgx new ncaa_data_rs

To run the extension, simply specify which postgresql version you want to use:

cargo pgx run pg13

Read more on pgx in the documentation.

Dependencies

~7–21MB
~308K SLoC