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

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.0.21.tar.gz (17.2 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.0.21-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: euroleague_api-0.0.21.tar.gz
  • Upload date:
  • Size: 17.2 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.0.21.tar.gz
Algorithm Hash digest
SHA256 6f2084a152b9e8069d6576c10d72c07973d33a7d8cda154504637853f8c46bee
MD5 69a7486afdfaee9fc59060fd3763b590
BLAKE2b-256 9f97b046f8b0739e23241745f57fc137f181e0af7cc0724de79ac06f5209d371

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for euroleague_api-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 071d4b21f44376947e2019dd3fd7b0cc7fe34928ef6c9b621e34dfb3a8e21943
MD5 03ee8b81b3aff741858463c190b04c6d
BLAKE2b-256 8224729024192637e5b793af8013e862de755e4ccf5bf2baf52953671d86c3aa

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