MIT License

项目介绍

cwendt94/espn-api 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 1.0k 个 Star、297 次 Fork。

仓库全名
cwendt94/espn-api
开源许可证
MIT License
Star 数
1.0k
Fork 数
297
未关闭 Issue
55

README 摘要

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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

espn-api 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 1.0k 个 Star。

espn-api 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 espn-api 的源码?

可以直接克隆仓库:git clone https://github.com/cwendt94/espn-api.git,默认分支为 master;安装与运行步骤见仓库 README。

espn-api 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 55 个未关闭 Issue;Star 数为 1.0k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

ESPN Fantasy API! (Football, Basketball)

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1613
价值分
688
活跃状态
活跃

语言占比

Dockerfile
Python

Release

README

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

For Getting Started and API details head over to the Wiki!

# 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)

Discussions (new)

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!

评论

暂无评论