Skip to main content

Rone Arena Python SDK

rone-arena is the community Python SDK for the Rone Arena API — an unofficial, community-maintained data API for the game Mobile Legends: Bang Bang.

  • Default base: https://arena-hv.fastapicloud.dev/api (high-volume host)
  • Standard base: https://arena.rone.dev/api
  • API docs: https://arena.rone.dev/api/docs
  • Client groups: academy, heroes, user, addon

Install

pip install rone-arena

Quick Start

from rone_arena import RoneArena

client = RoneArena()

heroes = client.heroes.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.

Migrating from OpenMLBB

This package supersedes OpenMLBB, which was renamed so the project's own branding no longer uses a trademark it does not own. The method surface is unchanged — only the install, the import, the client class, and the hero namespace differ.

Old New
pip install OpenMLBB pip install rone-arena
from OpenMLBB import OpenMLBB from rone_arena import RoneArena
OpenMLBB() RoneArena()
OpenMLBBError RoneArenaError
MlbbClient HeroesClient
client.mlbb.heroes(...) client.heroes.heroes(...)

The default base URL also moved from openmlbb.fastapicloud.dev to the renamed high-volume host arena-hv.fastapicloud.dev.

Versioning restarted at 1.0.0 with the rebrand, so it now tracks the Rone Arena API rather than continuing the MLBB-era 4.x line. rone-arena 4.2.0 was a one-off first upload under the new name and has been yanked; pin rone-arena>=1.0.0.

Endpoint Coverage

The SDK follows the same route coverage as the API routers:

  • academy: version, heroes, roles, equipment, spells, emblems, ranks, recommendations, ratings
  • heroes: hero list, rank, positions, details, stats, combos, trends, relations, counters, compatibility
  • user: auth, profile, stats, privacy, season, matches, hero matches, friends
  • addon: win-rate calculator, IP lookup

See the interactive API docs at https://arena.rone.dev/api/docs for endpoint-by-endpoint details.

Common Examples

from rone_arena import RoneArena

client = RoneArena()

# academy
academy_version = client.academy.meta_version(size=20, index=1, order="desc", lang="en")

# heroes
hero_list = client.heroes.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)

Handling downtime (HTTP 503)

The API returns 503 while it is in maintenance mode or shedding load, and names a host to try instead. The SDK raises ServiceUnavailableError for that case, with the suggested host already parsed out:

from rone_arena import RoneArena, RoneArenaError, ServiceUnavailableError

client = RoneArena()

try:
    heroes = client.heroes.heroes(size=5)
except ServiceUnavailableError as exc:
    print(exc)                       # includes the alternative endpoint
    print(exc.status_code)           # 503
    if exc.alternative_endpoint:     # fail over to the host the API suggested
        client = RoneArena(base_url=f"{exc.alternative_endpoint}/api")
        heroes = client.heroes.heroes(size=5)
except RoneArenaError as exc:
    print("request failed:", exc)

ServiceUnavailableError subclasses RoneArenaError, so existing except RoneArenaError blocks keep catching it. Order the handlers as above if you want to treat downtime specially. alternative_endpoint is None when the response body does not name one.

Pointing at a different host

The SDK defaults to the high-volume host. To use the standard host instead:

client = RoneArena(base_url="https://arena.rone.dev/api", timeout=30)

User-Agent

The default User-Agent is:

RoneAI-RoneArena-Python-SDK

You can override it by passing user_agent= to RoneArena(...).

Disclaimer

This is an unofficial, community-maintained project. It is not affiliated with, endorsed by, sponsored by, or associated with Shanghai Moonton Technology Co., Ltd. "Mobile Legends: Bang Bang", "MLBB", and all related names, marks, logos, and in-game assets are trademarks of their respective owners. Data is sourced from publicly accessible endpoints and provided for informational, educational, and analytical purposes only.

License

BSD 3-Clause License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rone_arena-1.0.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rone_arena-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file rone_arena-1.0.0.tar.gz.

File metadata

  • Download URL: rone_arena-1.0.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rone_arena-1.0.0.tar.gz
Algorithm Hash digest
SHA256 baf3909f7950571043e1d4c23c3d74c2db648028e6b1706f72e2f5c68b48b768
MD5 38e598b215de43539e25804468e7a95c
BLAKE2b-256 a4fd76bbecbc158739150ecf818cefd68fd0f1ba9f8044393eae096fdd27e85e

See more details on using hashes here.

Provenance

The following attestation bundles were made for rone_arena-1.0.0.tar.gz:

Publisher: python-publish.yml on ridwaanhall/rone-arena-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rone_arena-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rone_arena-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rone_arena-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf684c226bcd2f2f5b7d5a08a9c83cd108aee9d433cbefbff259642bd739525b
MD5 860691a157c6c1b2da88e24242c52c1f
BLAKE2b-256 999265acc5b5576ab52b65f59032ebdea5bafe81bf7fb30c997b5ade2c3f61b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for rone_arena-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on ridwaanhall/rone-arena-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

4.2.0

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page