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.1.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.1-py3-none-any.whl (140.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biathlon-1.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5b736912f237c267b57366f925978e91938e5c0a94b0c35db3becfb7820d2415
MD5 99fc740b576d7e2e795537dbc48353c6
BLAKE2b-256 6c690246e809cf31cb28b7a1564f64721db9ac39a8f6471e965eb33c70aa5e39

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: biathlon-1.6.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b61c7b118e9fea93d2f2de6ee72663378e357bb4e7a4fd9d269c405176b376
MD5 9e7dae4fb4e30db702c918a45b39ae6c
BLAKE2b-256 9f69d469f67c88277341cfc5a77c02f899ee10625f626c0e0664184b9ff9e2f1

See more details on using hashes here.

Provenance

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