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, andcumulatefilter out relay events. Only individual race formats (sprint, pursuit, individual, mass start) are included in statistics and rankings.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file biathlon-1.0.2.tar.gz.
File metadata
- Download URL: biathlon-1.0.2.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04faa93db1872cb2c4d7c7203376d9c27799e9b9ed575d9dc91fab87ef2b5283
|
|
| MD5 |
01fecf66e849a2a58a412aa79db0df88
|
|
| BLAKE2b-256 |
eff6c93b4829f32c21eed990ca21acfe8dd6dff6b2ea3e7ae178c95dd509429a
|
File details
Details for the file biathlon-1.0.2-py3-none-any.whl.
File metadata
- Download URL: biathlon-1.0.2-py3-none-any.whl
- Upload date:
- Size: 43.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b71a5d441f075c7c1c4386980fa4c15c116102bacce147050586bcfb0a52329c
|
|
| MD5 |
e98f455065d99ad58aec4ef1465c93a3
|
|
| BLAKE2b-256 |
3423255cc02a1358ac8c80024f5c7d31314af17c90c28b3c63154002b856da6f
|