Skip to main content

CLI for exploring IBU biathlon results from biathlonresults.com

Project description

Biathlon CLI

A CLI to explore data from the IBU biathlon results API at biathlonresults.com.

No external dependencies - pure Python standard library.

Installation

From PyPI

pip install biathlon

From source

git clone https://github.com/thbtmntgn/biathlon.git
cd biathlon
pip install .

For development

git clone https://github.com/thbtmntgn/biathlon.git
cd biathlon
pip install -e .

Releases

CI runs on every push and pull request to main. Publishing to PyPI and creating a GitHub release only happen when a version tag is pushed.

Create a release:

git tag v1.5.0
git push origin v1.5.0

Version numbers are derived dynamically from Git tags via setuptools-scm.

PyPI publishing uses GitHub Actions trusted publishing (id-token: write), so the project must be configured as a trusted publisher on PyPI.

Usage

List available seasons:

biathlon seasons

List World Cup events from the current season:

biathlon events

List World Cup events for a specific season:

biathlon events --season 2425

List IBU Cup events for the current season:

biathlon events --level 2

List events with their races for the current season World Cup:

biathlon events --races

List sprint races for a specific season:

biathlon events --season 2425 --races --discipline sprint

Show results for the most recent World Cup race:

biathlon results

Show results for a specific race id:

biathlon results --race BT2526SWRLCP01SWSP

Show detailed split times for a race:

biathlon results --race BT2526SWRLCP03SMMS --detail

Show World Cup total standings (women, current season by default):

biathlon standings

Show men sprint standings for season 2425:

biathlon standings --season 2425 --men --sort sprint

Show athlete information:

biathlon athlete info --search "boe johannes"
biathlon athlete id --search "boe"
biathlon athlete results --id BTFRA12305199301

Show medal standings:

biathlon ceremony
biathlon ceremony --athlete

Cumulate season statistics:

biathlon cumulate results
biathlon cumulate remontada --men
biathlon cumulate cleansheet
biathlon cumulate cleansheet --sort percentage

Shooting accuracy:

biathlon shooting
biathlon shooting --men

Athlete form (course time or shooting across recent races):

biathlon form
biathlon form --men --shoot
biathlon form --startlist
biathlon form --season --top 10

Season, event and race briefs (venue history, startlist analysis, post-race recap):

biathlon brief season
biathlon brief event
biathlon brief startlist
biathlon brief postrace

Run without installing:

python -m biathlon.cli seasons

Output formats:

biathlon results --format tsv
biathlon results --format markdown

License

MIT

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

biathlon-1.6.0.tar.gz (138.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

biathlon-1.6.0-py3-none-any.whl (140.4 kB view details)

Uploaded Python 3

File details

Details for the file biathlon-1.6.0.tar.gz.

File metadata

  • Download URL: biathlon-1.6.0.tar.gz
  • Upload date:
  • Size: 138.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for biathlon-1.6.0.tar.gz
Algorithm Hash digest
SHA256 10611fa40df735f27d14e51947b27b6c1a8f78a2713a033f6a3107f204805679
MD5 703d083d353a378ebde6babdf7f49ca2
BLAKE2b-256 22c6722a1b11bf4071dd0128f0013d292b8e89d548be060d9320b1b6efe93669

See more details on using hashes here.

Provenance

The following attestation bundles were made for biathlon-1.6.0.tar.gz:

Publisher: release.yml on thbtmntgn/biathlon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biathlon-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: biathlon-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 140.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for biathlon-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4c93ce09033571371f719d5749415057170ca3827a42debc39b00e1e04d054c
MD5 38885c88b9df7602e36d1695fbe04d4a
BLAKE2b-256 f1ae8f931de054898cfd2a0ad2de19a4dd4039df8267da1b6e0065ed9b690cc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for biathlon-1.6.0-py3-none-any.whl:

Publisher: release.yml on thbtmntgn/biathlon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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