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.0.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.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: euroleague_api-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8eac7179b9e7b70d1122417306ac2fb4d0d220a989fd433bf9a9bd8f46c012cc
MD5 4636ada637e9837df00bc5757a65d7e9
BLAKE2b-256 074ed6f218056d33c90369ddf377cac79befe34605498a0ea6e9009106f286e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: euroleague_api-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 696cc48f06e3062b95597033c13508c1d5f57c469e3a6718d2f65b29e0cf0fbc
MD5 863de14f60dcb867390344bd0adb078e
BLAKE2b-256 86a2f06974c5c2c6fab2b92d0ad16e8a7eef7bd4654d67ecb49e1c1e00631713

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