Python-wowapi is a client library for the World of Warcraft Community API.
Project description
python-wowapi
Python-wowapi is a client library for interacting with the World of Warcraft Community and Game Data API.
To interact with this library, you need to first get a client-id and client secret by registering here
For more information about official World of Warcraft API's visit: Official API documentation Official API Forum
API documentation can be found at python-wowapi.readthedocs.org. Examples and installation instructions are documented here.
Installing
pip install python-wowapi
API instance
import os
from wowapi import WowApi
api = WowApi(os.environ['WOW_CLIENT_ID'], os.environ['WOW_CLIENT_SECRET'])
Community API example
api.get_auctions('eu', 'silvermoon', locale='de_DE')
Game Data API examples
Get token price
api.get_token('eu', namespace='dynamic-eu', locale='de_DE')
Get class specializations and detail specialization resource
data = api.get_playable_specializations('us', namespace='static-us')
spec_id = data['character_specializations'][0]['id']
specialization = api.get_playable_specialization('us', namespace='static-us', spec_id=spec_id)
Get game data resource by url
This example shows how to fetch a game data resource by url.
The get_data_resource
method will take care of adding your access_token to the url.
api.get_data_resource('https://eu.api.blizzard.com/data/wow/connected-realm/509?namespace=dynamic-eu', region='eu')
Development & Testing
pip install -e .
pip install -e .[tests]
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python_wowapi-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de691faa710f7fb23d27a3c57eff16120068df1c2e1bd1a01319a58cbdae277e |
|
MD5 | d8db36dd934ddb0135322b0ddb44b664 |
|
BLAKE2b-256 | 9bc25512662d373d2594768816a1ea12f487bac4bc620724c528a59b0de71dde |