Skip to main content

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.

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.

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

openmlbb-4.0.3.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

openmlbb-4.0.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file openmlbb-4.0.3.tar.gz.

File metadata

  • Download URL: openmlbb-4.0.3.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openmlbb-4.0.3.tar.gz
Algorithm Hash digest
SHA256 1ede4827ed3e32d1ae4499e2d343670fec843bb90d202ae44a91aecb0d72d4d8
MD5 815d7d506a610954111385c9fbb1653a
BLAKE2b-256 6e49571d9ef1593c4737403fc22bebd35cc0ee23bf0b1c20c605a55ba07aa1cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmlbb-4.0.3.tar.gz:

Publisher: python-publish.yml on ridwaanhall/api-mobilelegends

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

File details

Details for the file openmlbb-4.0.3-py3-none-any.whl.

File metadata

  • Download URL: openmlbb-4.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openmlbb-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4fe61078fb773e0463834ce347db990610d761046e56623f3b972a05da8f44ef
MD5 3e7b1bb9d09aeb3db8c8a500c37ed95b
BLAKE2b-256 19aaeb01b1ebbf1412c79b0f85fa0272635a35bd7bf4d24c5fa1371a5cb117de

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmlbb-4.0.3-py3-none-any.whl:

Publisher: python-publish.yml on ridwaanhall/api-mobilelegends

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

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