Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python client for Diablo 3 web api
Python
branch: master
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.rst
__init__.py
diablo.py
requirements.txt
setup.py
tox.ini

README.rst

Diablo III Web Api Python Client

https://secure.travis-ci.org/sammyrulez/diablo-api-py.png?branch=master

Introduction

This is a Python module to query Diablo 3 public data (see https://github.com/Blizzard/d3-api-docs). The Diablo 3 API resources are not publicly available: this implementation is based on the actual doc.

Installation

pip install git+https://github.com/sammyrulez/diablo-api-py.git

Usage

#import module
import diablo
#read career data
career = diablo.career_profile(diablo.US_SERVER, 'battletag_name', 'battletag_number')

The career object has the same structure as the json returned from the same api call https://github.com/Blizzard/d3-api-docs#career-profile-example.

Attributes name differs from the json fields: '-' has been replaced with '_' to match python syntax.

'heros', 'last_hero_played' and 'items' attributes are 'Lazy' objects: details are loaded from the remote service only if you invoke them

Something went wrong with that request. Please try again.