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 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.4.0.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file ballchaser-0.4.0.tar.gz
.
File metadata
- Download URL: ballchaser-0.4.0.tar.gz
- Upload date:
- Size: 4.4 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 | 798237d8d5834195a5bef71f1645e9916d15b90c61ef2c4bd8e7c4d45081287e |
|
MD5 | e74674dcac30d2ffde773c6779c2197f |
|
BLAKE2b-256 | f9858e8155f03ddb0e9bc2ce6cec042f6e881e8e1ece457e69c290cc2074d22c |
File details
Details for the file ballchaser-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: ballchaser-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.6 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 | be8b6b1dc27a76ad384683aed8f11accc6d8d4cfadc0082b9dddcf116d7127fc |
|
MD5 | 4cf9fa1db8ba9fb262b9f6b07ec7cfd9 |
|
BLAKE2b-256 | 2502c77214ee6335c1c120bd0c73fa8d31efe1a1afae1b77c5fccd291b00926f |