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 specific seasons:

biathlon events --seasons 2425,2324

List IBU Cup and IBU Cup Junior events for the current season:

biathlon events --levels 2,3

List races (all event types) for the current season World Cup:

biathlon races

List sprint and mass-start races across specific seasons:

biathlon races --seasons 2425,2324 --types sprint,mass

List races for specific events:

biathlon races --events BT2526SWRLCP01,BT2526SWRLCP02

Show results for the most recent World Cup race:

biathlon results

Show results for a specific race id:

biathlon results --race BT2526SWRLCP01SWSP

Show course/range/shooting time breakdowns for a race:

biathlon results course --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 --gender men --type 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.0.1.tar.gz (37.2 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.0.1-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for biathlon-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b8c65e8039b5fa61141887f9e2d4ff637be2fa3dd672f20abe29919bdf6da2c5
MD5 3665d32ad44e6d21e1a207aa3a51a788
BLAKE2b-256 836899b700443a4e3fa0fedd0f79efa1e71e5fdba2452adb520d8f73738ef1ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biathlon-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 43.0 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 718d019b609ac23f8489e2358b20fc4e303514dbc250a207df4b9d083a5f04c0
MD5 6173301d17b0c9d069598fa54d3d8cd6
BLAKE2b-256 6d4cbdde2c4e6ee87a847b583e830bdba765b9b33df0659f84be5e034126a64c

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