Skip to content

sammyrulez/diablo-api-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python client for Diablo 3 web api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages