Skip to main content

ballchaser ⚽️🚗

PyPI Code style: black Imports: isort

Unofficial Python API client for the ballchasing.com API.

Usage

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.list_replays(player_name="GarrettG", replay_count=10)
]

# retrieve replay statistics
replay_stats = [
    ball_chaser.get_replay(replay["id"])
    for replay in replays
]

API requests can automatically be retried if they return a rate limit response by specifying backoff=True. Requests will be tried up to max_tries times with exponential backoff between subsequent retries, e.g.

import os

from ballchaser.client import BallChaser

ball_chaser = BallChaser(os.getenv("BALLCHASING_API_TOKEN"), backoff=True, max_tries=5)

Contributing & Feedback

If there are any new features you'd like, or you encounter a bug, you can contribute by opening an issue or submitting a pull request.

Metadata

Release files for ballchaser 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ballchaser 0.8.0
File Size Uploaded
ballchaser-0.8.0.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ballchaser 0.8.0
File Interpreter ABI Platform
ballchaser-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / ballchaser-0.8.0.tar.gz

Download URL ballchaser-0.8.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
51dff785eab169a65849f63eb62a2e7657c4df46bbf30bb29ad9304344b28e8f
BLAKE2b-256 checksum
How to use checksums
fb79ac1a5f78776ba48e7c663b124528478a830a3b5554c97a7ae7fbc256e589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1021-azure

Release files / ballchaser-0.8.0-py3-none-any.whl

Download URL ballchaser-0.8.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1828b9b1fbcd8ee45a581003316d26785a1f094f5a0c633c13f514f6c3081f0e
BLAKE2b-256 checksum
How to use checksums
942140685fb037a9fc61a6254691f99ac8c1f312f99b3057f4ba99dc0d010cf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1021-azure

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page