Unofficial Python API client for the ballchasing.com API.
Project description
ballchaser ⚽️🚗
Unofficial Python API client for the ballchasing.com API.
Getting Started
pip install ballchaser
All API requests are exposed via the BallChaser
class which is initialised with a ballchasing.com API token.
import os
from ballchaser.client import BallChaser
ball_chaser = BallChaser(os.getenv("BALLCHASING_API_TOKEN"))
# search and retrieve replay metadata
replays = [
replay
for replay in ball_chaser.get_replays(player_name="GarrettG", replay_count=10)
]
# retrieve replay statistics
relay_stats = [
ball_chaser.get_replay(replay["id"])
for replay in replays
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ballchaser-0.5.0.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file ballchaser-0.5.0.tar.gz
.
File metadata
- Download URL: ballchaser-0.5.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a39d8a7f690062f016b23fce2b3992847a1f817753bb400f711e5e9b74acf7 |
|
MD5 | 6873909024e12b28c66686282695801e |
|
BLAKE2b-256 | 313cef331eaff400a5bbc143c9a32d5978dd1fe07e031df0672ac63f59de2edb |
File details
Details for the file ballchaser-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: ballchaser-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f9aab941cb3d1e51956a367a44424a06bc01eeb8f7570bcb8875c26411b22f9 |
|
MD5 | af89b055434000df7337735a5635f598 |
|
BLAKE2b-256 | 0f9d6c4de34d5536cd1d8af9c9cc30dcd91194c50d6f552597103fe0c1267f6a |