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.
pip install git+https://github.com/sammyrulez/diablo-api-py.git
#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