ESPN API
Actively maintained. Last release 7 weeks ago, commits in 7 of the last 26 weeks. A safe choice.
pip install espn-apiESPN 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