Skip to content

Update static player data#669

Open
OnerInce wants to merge 1 commit into
swar:masterfrom
OnerInce:update-wnba-static-players
Open

Update static player data#669
OnerInce wants to merge 1 commit into
swar:masterfrom
OnerInce:update-wnba-static-players

Conversation

@OnerInce
Copy link
Copy Markdown
Contributor

Summary

  • Regenerated src/nba_api/stats/library/data.py via scripts/static_players_update/generate_static_data_file.py, then ruff format (matches existing committed style).
  • Adds 61 missing WNBA players (mostly 2026 rookies and overseas draftees) that were causing find_wnba_player_by_id lookups to fail in downstream parsing code.
  • Refreshes is_active flags for both leagues.

Stats

  • NBA: 5126 total / 587 active
  • WNBA: 1208 total / 212 active

How to reproduce

python scripts/static_players_update/generate_static_data_file.py
ruff format src/nba_api/stats/library/data.py

Verification

  • Diff is data-only (teams / wnba_teams unchanged).
  • from nba_api.stats.library.data import players, wnba_players imports cleanly with expected counts.
  • Sample lookups (e.g. id 1642786 -> Aicha Coulibaly) resolve via players.find_wnba_player_by_id.

Regenerated via scripts/static_players_update/generate_static_data_file.py
then `ruff format`. Adds 61 missing WNBA players (mostly 2026 rookies and
overseas draftees) and refreshes is_active flags for NBA + WNBA.

NBA: 5126 total / 587 active
WNBA: 1208 total / 212 active
@OnerInce OnerInce requested a review from swar as a code owner May 11, 2026 19:53
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.

1 participant