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 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 relay results:

biathlon relay
biathlon relay --men
biathlon relay --mixed

Show biathlete information:

biathlon biathlete info --search "boe johannes"
biathlon biathlete id --search "boe"
biathlon biathlete results --id BTFRA12305199301

Show medal standings:

biathlon ceremony
biathlon ceremony --athlete

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)

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.3.0.tar.gz (52.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.3.0-py3-none-any.whl (58.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for biathlon-1.3.0.tar.gz
Algorithm Hash digest
SHA256 4605f06ccbe632c0aed0380b137ea1ef64e3334f5485bdf2c6fa99b73c06921f
MD5 9ae894ad6f99c794f68d84a2cf8d2de5
BLAKE2b-256 5c8b1e47299a12ac57644d7e83656a7050bd51efabfba50677fa612e020c696d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biathlon-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 58.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 584535ee7a0cfc93ff74af4ccf19093747ece1b5430bf42e9bcf142403d6c51d
MD5 9ec71ff1bb6da9952eb0222c1731b6c6
BLAKE2b-256 3bc97ecb77e369ec99738dcc58728b10e0633ef0d64dfa57139e82fa6b025b1e

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