ncaa_eval.ingest.repository module¶
Repository pattern for NCAA basketball data storage.
Defines an abstract Repository interface and a concrete
ParquetRepository implementation backed by Apache Parquet files.
The abstraction lets downstream code remain storage-agnostic — a SQLite
implementation can be plugged in later (Story 5.5) without changing any
business logic.
- class ncaa_eval.ingest.repository.ParquetRepository(base_path: Path)[source]¶
Bases:
RepositoryRepository implementation backed by Parquet files.
Directory layout:
{base_path}/ teams.parquet seasons.parquet games/ season={year}/ data.parquet
- get_games(season: int) list[Game][source]¶
Load games for a single season from hive-partitioned Parquet.
- class ncaa_eval.ingest.repository.Repository[source]¶
Bases:
ABCAbstract base class for NCAA data persistence.
- abstractmethod save_games(games: list[Game]) None[source]¶
Persist a collection of games (overwrite per season partition).