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

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.5.0.tar.gz (137.3 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.5.0-py3-none-any.whl (139.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for biathlon-1.5.0.tar.gz
Algorithm Hash digest
SHA256 655b24462b3b3ca10666a1a6356e6055a1b064284d528f682b5bddef233f70e8
MD5 d107855f4a4ff62e5bbe26e8cc882372
BLAKE2b-256 d71e49516dd5ccf62e5e0d7374ed1da7e2d580cc853cbb89175b6ceb95cde025

See more details on using hashes here.

Provenance

The following attestation bundles were made for biathlon-1.5.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.5.0-py3-none-any.whl.

File metadata

  • Download URL: biathlon-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 139.6 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83b006a0722ac1b9f4a63f1bf09c1e25e03094878ef43065cea4f5bb4aa2ba85
MD5 3be638b40401f9f393384f27a4800c96
BLAKE2b-256 1766628ed89503657cf8d534340f7f891b4fa0b7c6405df9fb866a34ea0b4bdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for biathlon-1.5.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