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.18.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

euroleague_api-0.0.18-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: euroleague_api-0.0.18.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for euroleague_api-0.0.18.tar.gz
Algorithm Hash digest
SHA256 1b4a7dae329aa64b3abef5172e77b86d67377caa3ca4f2b67396a46cda39de72
MD5 5e920937ff5a01aacd3907f5e92976e1
BLAKE2b-256 2fd94608151ae948af68efa53efe416a8b25cce3119c3dce6e0c4943180eba35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for euroleague_api-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 4a31d787a18fbfd7d74a79e7898f8d44b203f9a1176524c56832ff93c888a70c
MD5 cc5f809d0273addeab072aa0b2ce0fc1
BLAKE2b-256 29f8657d76f12ea250142d7b4566c367192ce851c94b1d0ddb4f485e793a6a1f

See more details on using hashes here.

Supported by

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