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 country standings (Nations Cup + Relay points):

biathlon standings --country
biathlon standings --country --sort women-relay
biathlon standings --country --sort women-nations

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

Show achievements medal tables:

biathlon achievements
biathlon achievements --men
biathlon achievements --country
biathlon achievements --nationality FRA
biathlon achievements --olympics
biathlon achievements --world --season all

Cumulate season statistics:

biathlon cumulate results
biathlon cumulate ski
biathlon cumulate pursuit
biathlon cumulate course
biathlon cumulate range
biathlon cumulate shooting
biathlon cumulate miss
biathlon cumulate penalty
biathlon cumulate remontada --men
biathlon cumulate cleansheet
biathlon cumulate cleansheet --sort percentage

Shooting accuracy:

biathlon shooting
biathlon shooting --men
biathlon shooting --race BT2526SWRLCP01SWSP
biathlon shooting --season 2425
biathlon shooting --include-relay all
biathlon shooting --sort hit-pct --min 50 --limit 30

Athlete form (course time ranks and shooting across recent races):

biathlon form
biathlon form --men
biathlon form --startlist
biathlon form --season --top 10
biathlon form --nat FRA,NOR

Season, event and race briefs (preevent agenda + standings snapshot, startlist analysis, post-race recap):

biathlon brief preseason
biathlon brief postseason
biathlon brief preevent
biathlon brief postevent
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.7.1.tar.gz (233.1 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.7.1-py3-none-any.whl (202.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for biathlon-1.7.1.tar.gz
Algorithm Hash digest
SHA256 1d0adafb9fd96886872d7461a5eb159db439f029374530100415e192229603b5
MD5 c4fb86ad7235041a156e1b0bae770fea
BLAKE2b-256 2cc05134055941a5c26e913aa59014edd4bdac04d54442c7ae59d01bec038b8e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: biathlon-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 202.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.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee62677f7371d7224f5f4b8d075a7be899f2e7716b8960025284ef8d1d38df0d
MD5 ffbd8c2719ce3e8e486f3388cef9d738
BLAKE2b-256 0f461a80eb64c86d740520566e34dc73b04097e00b4bf1d097699c3ff32056b2

See more details on using hashes here.

Provenance

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