Python 3 wrapper and parser for interacting with Valve's Dota 2 WebAPI.
| Documentation | Build | Version | Quality | License |
|---|---|---|---|---|
This project is still growing, with additonal parsing, tests, documentation and examples.
Install from pip using:
$ pip install d2apiDownload the latest build and install using:
$ git clone https://github.com/whoophee/d2api/
$ cd d2api/
$ python setup.py installFirst of all, you need an API key from Steam. Once that's done, you can initialize the wrapper in one of two ways.
Set the environment variable D2_API_KEY to the API key you just generated, and then initialize your wrapper using,
api = d2api.APIWrapper()You can also initialize the wrapper inline using,
# This takes priority over the environment variable
api = d2api.APIWrapper(api_key = 'your api key')You can find further use cases and examples here.
Documentation is available at http://d2api.readthedocs.org/