opendota2py

OpenDota API Interface


License
MIT
Install
pip install opendota2py==1.0

Documentation

Open Dota 2 Python API

coverage | PyPI version

A Python 3 module for the OpenDota API

Installation

pip3 install opendota2py

Usage

Documentation

>>> import opendota2py
>>> player = opendota2py.Player(82279028)
>>> player.mmr_estimate
2967
>>> match = player.recent_matches[0]
>>> match.radiant_win
True
>>> match.radiant_score
37
>>> hero = opendota2py.Hero(1)
>>> hero.name
'npc_dota_hero_antimage'
>>> hero.localized_name
'Anti-Mage'
>>> hero.legs
2