Official Python SDK for the MLBB Public Data API
Project description
OpenMLBB Python SDK
OpenMLBB is the official Python SDK for https://mlbb.rone.dev/api.
- API base:
https://mlbb.rone.dev/api - Docs:
https://mlbb.rone.dev/openmlbb - Groups:
academy,mlbb,user,addon
Install
pip install OpenMLBB
Quick Start
from OpenMLBB import OpenMLBB
client = OpenMLBB()
heroes = client.mlbb.heroes(size=5, index=1, order="desc", lang="en")
academy_roles = client.academy.roles(lang="en")
win_rate = client.addon.win_rate_calculator(match_now=100, wr_now=50, wr_future=60)
print(heroes)
print(academy_roles)
print(win_rate)
Every SDK method returns API JSON as a Python dictionary.
Endpoint Coverage
OpenMLBB follows the same route coverage as API routers:
academy: version, heroes, roles, equipment, spells, emblems, ranks, recommendations, ratingsmlbb: heroes list, rank, positions, details, stats, combos, trends, relations, counters, compatibilityuser: auth, profile, stats, privacy, season, matches, hero matches, friendsaddon: win-rate calculator, IP lookup
See the interactive SDK docs at https://mlbb.rone.dev/openmlbb for endpoint-by-endpoint usage examples.
Common Examples
from OpenMLBB import OpenMLBB
client = OpenMLBB()
# academy
academy_version = client.academy.meta_version(size=20, index=1, order="desc", lang="en")
# mlbb
hero_list = client.mlbb.heroes(size=10, index=1, order="desc", lang="en")
# addon
wr_calc = client.addon.win_rate_calculator(match_now=100, wr_now=50, wr_future=60)
print(academy_version)
print(hero_list)
print(wr_calc)
User-Agent
The default User-Agent is:
RoneAI-OpenMLBB-Python-SDK
You can override it by passing user_agent= to OpenMLBB(...).
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
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 openmlbb-4.0.6.tar.gz.
File metadata
- Download URL: openmlbb-4.0.6.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6fd26860e73c8cf8e4876f2f7e48aa07fd7adda821c6828f7ee17808f828f63
|
|
| MD5 |
ae7a499bde12297ce53f89c1b42f4de8
|
|
| BLAKE2b-256 |
ee6c200b54fd2299c3b9bd156b332671d553e8904bfdcf79471731c144b836df
|
Provenance
The following attestation bundles were made for openmlbb-4.0.6.tar.gz:
Publisher:
python-publish.yml on ridwaanhall/api-mobilelegends
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openmlbb-4.0.6.tar.gz -
Subject digest:
d6fd26860e73c8cf8e4876f2f7e48aa07fd7adda821c6828f7ee17808f828f63 - Sigstore transparency entry: 1283068648
- Sigstore integration time:
-
Permalink:
ridwaanhall/api-mobilelegends@1e55b54b9bb8f1fe255f83e2fa98fc19d91a5b0e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ridwaanhall
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1e55b54b9bb8f1fe255f83e2fa98fc19d91a5b0e -
Trigger Event:
push
-
Statement type:
File details
Details for the file openmlbb-4.0.6-py3-none-any.whl.
File metadata
- Download URL: openmlbb-4.0.6-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf358bcf09ca61981c1f9e32c263e25c858ce8224cb4e6ae0d02af7ced4bea63
|
|
| MD5 |
36238408641482c13efff1ee9c40eaaf
|
|
| BLAKE2b-256 |
3ab372a4b14ea8e303d46698efde1f083cb4f64b910a1d8a56d0836e09fbe524
|
Provenance
The following attestation bundles were made for openmlbb-4.0.6-py3-none-any.whl:
Publisher:
python-publish.yml on ridwaanhall/api-mobilelegends
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openmlbb-4.0.6-py3-none-any.whl -
Subject digest:
cf358bcf09ca61981c1f9e32c263e25c858ce8224cb4e6ae0d02af7ced4bea63 - Sigstore transparency entry: 1283068661
- Sigstore integration time:
-
Permalink:
ridwaanhall/api-mobilelegends@1e55b54b9bb8f1fe255f83e2fa98fc19d91a5b0e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ridwaanhall
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1e55b54b9bb8f1fe255f83e2fa98fc19d91a5b0e -
Trigger Event:
push
-
Statement type: