Skip to content

misc unmerged from lineup data - #17

Merged
RickArko merged 5 commits into
mainfrom
lineup-post
Jul 15, 2026
Merged

misc unmerged from lineup data#17
RickArko merged 5 commits into
mainfrom
lineup-post

Conversation

@RickArko

Copy link
Copy Markdown
Owner

No description provided.

@RickArko RickArko changed the title misc leftover misc unmerged from lineup data Jul 15, 2026
@RickArko
RickArko requested a review from Copilot July 15, 2026 03:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new ffpy-ingest command-line workflow for fetching league data from ESPN, Yahoo, and Sleeper, optionally persisting normalized results to the existing SQLite database, and printing results in table/JSON/CSV formats. It also adjusts ESPN request cookie handling to avoid sending empty cookies for public leagues.

Changes:

  • Add a new ffpy-ingest CLI with subcommands to ingest leagues and inspect stored leagues/rosters/matchups from the DB.
  • Add ingest implementations for ESPN (public/private autodetect), Yahoo (OAuth token management), and Sleeper (public API).
  • Add output utilities (table/JSON/CSV + DB persistence helper) and auth helpers for cookie/token file storage; register a new console script entry point.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
src/ffpy/integrations/espn_league.py Avoids sending empty cookies; only attaches cookies when auth is present.
src/ffpy/ingest/yahoo.py Adds Yahoo ingest flow with token refresh + interactive OAuth fallback and normalization.
src/ffpy/ingest/sleeper.py Adds Sleeper ingest flow and normalization with cached player map enrichment.
src/ffpy/ingest/output.py Adds JSON/CSV/table output formatters and DB persistence helper.
src/ffpy/ingest/espn.py Adds ESPN ingest flow with public/private autodetect + cookie prompting and normalization.
src/ffpy/ingest/cli.py Adds ffpy-ingest argparse CLI and DB inspection commands.
src/ffpy/ingest/auth.py Adds token/cookie load/save helpers under ~/.ffpy/.
src/ffpy/ingest/init.py Exposes the new ingest package/modules and documents usage.
pyproject.toml Registers the new ffpy-ingest console script entry point.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/ffpy/integrations/espn_league.py Outdated
Comment thread src/ffpy/ingest/cli.py Outdated
Comment thread src/ffpy/ingest/cli.py Outdated
Comment thread src/ffpy/ingest/cli.py Outdated
Comment thread src/ffpy/ingest/cli.py
Comment thread src/ffpy/ingest/auth.py
Comment thread src/ffpy/ingest/cli.py
Comment thread src/ffpy/ingest/espn.py
Comment thread src/ffpy/ingest/cli.py Outdated
Comment thread src/ffpy/ingest/__init__.py Outdated
RickArko and others added 4 commits July 14, 2026 22:08
…data.

Mock get_cfb_roster_seasons so CI no longer fails once 2025 rosters are published.

Co-authored-by: Cursor <cursoragent@cursor.com>
Fix docs/subcommand names, typing.Any, token file perms, parent CLI flags, and 401/403-only private-league detection.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@RickArko
RickArko merged commit 18f93a7 into main Jul 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants