GitHub 火線榜

GitHub 火線榜 · 倉庫檔案

cwendt94/espn-api

ESPN Fantasy API! (Football, Basketball) (簡介來自倉庫自身文件。)

Python#api#basketball#espn

資料截至 October 29cwendt94

最好成績

#42

即時里程碑 · 破星直播

997

累計 Star

295

Fork 總數

2

近 30 天在榜天數

授權條款: MIT最近 push: October 26Open Issues(含 PR): 65自 2026-10-25 起採集;未知 = 尚未採集到

專案文件

codecov Join the chat at https://gitter.im/ff-espn-api/community PyPI version

ESPN API

This package uses ESPN's Fantasy API to extract data from any public or private league for Fantasy Football and Basketball (NHL, MLB, and WNBA are in development).
Please feel free to make suggestions, bug reports, and pull request for features or fixes!

This package was inspired and based off of rbarton65/espnff.

Installing

Note

For contributors, please refer to the development section.

Latest release with pip:

pip install espn_api

Clone from source with Git and uv:

git clone https://github.com/cwendt94/espn-api
cd espn-api
uv sync

Development

This project's development tooling uses uv as the dependency/environment manager, in order to create an easy, reproducible development workflow. With uv installed, run uv sync --extra dev at the root of your clone to setup the dev environment. The formatter needs Python 3.10+.

Tests

uv run pytest tests --ignore-glob='**/integration/**'

Omit the --ignore-glob option to run all tests(including those that hit live ESPN).

Format

uv run black espn_api tests

Type check

uv run mypy espn_api

Usage

# Football API
from espn_api.football import League
# Basketball API
from espn_api.basketball import League
# Hockey API
from espn_api.hockey import League
# Baseball API
from espn_api.baseball import League
# Init
league = League(league_id=222, year=2019)

If you have any questions about the package, ESPN API data, or want to talk about a feature please start a discussion!

Issue Reporting

If you find a bug follow the steps below for reporting.

  1. Open a new issue with a brief description of the bug for the title. In the title also add which sport (Football or Basketball)

  2. Run the application in debug mode to view ESPN API request's and response's

    # ... import statement above
    league = League(league_id=1245, year=2019, debug=True)

    The application will print all requests and the response from ESPN's API in the console. I would suggest piping the console output to a text file as it will be a lot of data.

  3. Find the last log before the crash and copy it in the issue descrption with the line number of the crash or possible bug.

  4. Submit the new issue!

I will try to comment on the issue as soon as possible with my thoughts and possible fix!

當前上榜

  • 42

    即時里程碑 · 破星直播

    997 星 · 295 fork · 距下一條線

    里程碑 →

近 30 天勢頭

累計 Star 走勢

名次走勢

把上榜徽章放進你的 README · cwendt94/espn-api[![把上榜徽章放進你的 README](https://git.vaiox.xyz/api/badge/cwendt94/espn-api.svg)](https://git.vaiox.xyz/zh-TW/repo/cwendt94/espn-api)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/zh-TW/repo/cwendt94/espn-api"><img src="https://git.vaiox.xyz/api/badge/cwendt94/espn-api.svg" alt="把上榜徽章放進你的 README" height="20"></a>

← 回到榜單

GitHub 火線榜往日榜發現联系我们 · Contact