Skip to main content

A Python wrapper of the Euroleague API

Project description

Euroleague API

This is a python package of the Euroleague API for the Euroleague and EuroCup leagues. The API endpoints were found on the swagger platform, with the addition of a few more API endpoints (e.g. shot data) found on blogs and discussions. More endpoints will be added.

If you like this library, consider donating on

Buy Me A Coffee

Installation

pip install euroleague-api

Example

from euroleague_api.shot_data import ShotData

season = 2022
game_code = 1
competition_code = "E"

shotdata = ShotData(competition_code)
df = shotdata.get_game_shot_data(season, game_code)

See also the notebooks/get-season-stats.ipynb notebook for examples.

Documentation

Euroleague Data class

EuroleagueData.py

Game stats

game_stats.py

Player stats

player_stats.py

Team stats

team_stats.py

Standings

standings.py

Shot data

shot_data.py

Play-by-play data

play_by_play_data.py

Boxscore data

boxscore_data.py

Game Metadata

game_metadata.py

League Schedule

schedule.py

Auxiliary functions

utils.py

TODO

  • Add tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

euroleague_api-0.1.1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

euroleague_api-0.1.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file euroleague_api-0.1.1.tar.gz.

File metadata

  • Download URL: euroleague_api-0.1.1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for euroleague_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7b0496d2fef5188e37cf6672c387c1019694027bfe191c43efece03969efd352
MD5 3a8fce4608c837f15e1cf8b4ffc055ed
BLAKE2b-256 6ab095c08ea1ed1ba00e6f0ce6b2f42e11e844dcc45f21d9ce16034e3d7145e5

See more details on using hashes here.

File details

Details for the file euroleague_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: euroleague_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for euroleague_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c285f90c95cbe92f6760f5151f7d71346f3b7ff177f01558f97ddd65a6d70175
MD5 71ecf09bea319f4ce4e6947b4703d8f2
BLAKE2b-256 ad220c2e7c40c5f73d7989795d1854074154aa9c029168de3317fe988ae95560

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page