Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Dota 2 API wrapper and parser for Python 3

Project description

d2api

Introduction

Python 3 wrapper and parser for interacting with Valve's Dota 2 WebAPI.

Documentation
Documentation

This project is still growing, with additonal parsing, tests, documentation and examples.

Installation

Install using pip (recommended)

Install from pip using:

$ pip install d2api

Clone from github

Download the latest build and install using:

$ git clone https://github.com/whoophee/d2api/
$ cd d2api/
$ python setup.py install

Getting Started

First of all, you need an API key from Steam. Once that's done, you can initialize the wrapper in one of two ways.

Initialize using Environment Variable

Set the environment variable D2_API_KEY to the API key you just generated, and then initialize your wrapper using,

api = d2api.APIWrapper()

Initialize inline

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

Documentation is available at http://d2api.readthedocs.org/

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
d2api-1.1-py3-none-any.whl (48.3 kB) Copy SHA256 hash SHA256 Wheel py3
d2api-1.1.tar.gz (34.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page