Skip to main content

Python-wowapi is a client library for the World of Warcraft Community API.

Project description

python-wowapi

Build Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-wowapi-2.2.0.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

python_wowapi-2.2.0-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page