Replace monolithic scraping scripts with sportstime_parser package: - Multi-source scrapers with automatic fallback for 7 sports - Canonical ID generation for games, teams, and stadiums - Fuzzy matching with configurable thresholds for name resolution - CloudKit Web Services uploader with JWT auth, diff-based updates - Resumable uploads with checkpoint state persistence - Validation reports with manual review items and suggested matches - Comprehensive test suite (249 tests) CLI: sportstime-parser scrape|validate|upload|status|retry|clear Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
658 B
Python
36 lines
658 B
Python
"""Data models for sportstime-parser."""
|
|
|
|
from .game import Game, save_games, load_games
|
|
from .team import Team, save_teams, load_teams
|
|
from .stadium import Stadium, save_stadiums, load_stadiums
|
|
from .aliases import (
|
|
AliasType,
|
|
ReviewReason,
|
|
TeamAlias,
|
|
StadiumAlias,
|
|
FuzzyMatch,
|
|
ManualReviewItem,
|
|
)
|
|
|
|
__all__ = [
|
|
# Game
|
|
"Game",
|
|
"save_games",
|
|
"load_games",
|
|
# Team
|
|
"Team",
|
|
"save_teams",
|
|
"load_teams",
|
|
# Stadium
|
|
"Stadium",
|
|
"save_stadiums",
|
|
"load_stadiums",
|
|
# Aliases
|
|
"AliasType",
|
|
"ReviewReason",
|
|
"TeamAlias",
|
|
"StadiumAlias",
|
|
"FuzzyMatch",
|
|
"ManualReviewItem",
|
|
]
|