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 https://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 .

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 ski/range/shooting time breakdowns for a race:

biathlon results ski --race BT2526SWRLCP03SMMS
biathlon results range --race BT2526SWRLCP03SMMS
biathlon results shooting --race BT2526SWRLCP03SMMS

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

biathlon scores

Show men sprint standings for season 2425:

biathlon scores --season 2425 --men --sort sprint

Run without installing:

python -m biathlon.cli seasons

Shell Completion

Enable tab completion for bash:

eval "$(biathlon --completion bash)"

Or add to your ~/.bashrc:

source <(biathlon --completion bash)

For zsh, add to your ~/.zshrc:

source <(biathlon --completion zsh)

Limitations

  • Relay races are not supported. Commands like results, shooting, and cumulate filter out relay events. Only individual race formats (sprint, pursuit, individual, mass start) are included in statistics and rankings.

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.2.0.tar.gz (49.8 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.2.0-py3-none-any.whl (55.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biathlon-1.2.0.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for biathlon-1.2.0.tar.gz
Algorithm Hash digest
SHA256 973d472bab01cb2ce0e7391e885a39058a6362f519d7572c9bb4ce8cfb1263a5
MD5 35d6ebcc49a7abf8d30095411824bc3d
BLAKE2b-256 043147c08a552f1ad3fc76135e8060e90313596152511063b9f90a71c8e5942b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biathlon-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 55.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for biathlon-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbc041a838078b46c06604589dab758b729cbeb42efb13991e5d1318a0bfbe91
MD5 d27539dde26568945224f9350e24dffe
BLAKE2b-256 3ea20549f4ee85c2af907c69266f83e53a15ad563f8a8d2007ea0b0dd6a4db10

See more details on using hashes here.

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