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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64217084c205907d70697875e9ba7924a1744f4e8f1adcfaa557a12dc9b40ab9 |
|
MD5 | b3cc7d32711b3388674af3aa82a631e4 |
|
BLAKE2b-256 | 80181164a57b846f01270838f90857c25785b99bf8176e7aa32db0efe30f2022 |