Official Python client for batru.gg — real, calibrated Dota 2 win-rate predictions and pick recommendations from a production model.
Project description
batru
Official Python client for batru.gg — real, calibrated Dota 2 win-rate predictions and pick recommendations, served by a production model trained on ~20M real matches.
Early preview (alpha). The surface is intentionally tiny and may change. This package is the home of the official batru.gg SDK; the MCP server for LLMs lives separately.
Install
pip install batru
Use
import batru
# Calibrated win probability for a (partial) draft — hero shortNames:
batru.winrate(radiant=["antimage", "axe"], dire=["lina", "tinker"])
# {'radiant_win_rate': 52.31, 'dire_win_rate': 47.69}
# Best next picks for our (Radiant) team:
batru.recommend(radiant=["antimage"], dire=["lina", "tinker"])
# Hero roster, to map display names to the shortNames used above:
[h["shortName"] for h in batru.heroes()][:3]
Probabilities are calibrated: a reported 60% corresponds to an empirically observed ~60% win rate on holdout data — see the methodology.
Read-only, no key required. Please keep request volume reasonable.
Analysis only, no betting.
License
MIT © Batru (batru.gg)
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 batru-0.1.0.tar.gz.
File metadata
- Download URL: batru-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4118dfb72a9ce9c4b39f19194c4a9b388e8ad7a348272b8bd5d5695d0307b7c
|
|
| MD5 |
dc985c435a1f30539ef3c1763150d742
|
|
| BLAKE2b-256 |
394b641251cc1a2de971196f0c8c3987a315eb8e9229af1541b150936a21a648
|
File details
Details for the file batru-0.1.0-py3-none-any.whl.
File metadata
- Download URL: batru-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a3fdde9a8c2a4a9b2db5bc166cf97f9fb5fdae24fec9e7d1a3e39b691759c92
|
|
| MD5 |
3872dbbf6b1f686d38590dc2a7f27efb
|
|
| BLAKE2b-256 |
28c71ae5f46b8f50c4f8d0a06061c20801eac60780800f176c5bfc247c06853b
|