A Python implementation of Blizzard's Web API.
Project description
Python Implementation of Blizzard’s Web API
BattleMuffin officially supports Python 3.6-3.8.
Requirements
This package requires client credentials from Blizzard.
You can find out more about how to generate these credentials for your project at the Blizzard Developer Portal.
Quick Setup
Some easy examples to get you started!
from battlemuffin.clients.warcraft_client import WarcraftClient
client = new WarcraftClient("CLIENT_ID", "CLIENT_SECRET")
response = client.get_achievement_categories_index()
It is possible to specify a region, using its default locale
from battlemuffin.clients.warcraft_client import WarcraftClient
from battlemuffin.config.region_config import Region
client = new WarcraftClient("CLIENT_ID", "CLIENT_SECRET", Region.eu)
response = client.get_achievement_categories_index()
It is also possible to specify both the region and locale
from battlemuffin.clients.warcraft_client import WarcraftClient
from battlemuffin.config.region_config import Region, Locale
client = WarcraftClient(client_id, client_secret, Region.eu, Locale.es_ES)
response = client.get_achievement_categories_index()
Installation
To install the latest stable release, you can use pip (or pipenv):
$ pip install -U battlemuffin
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
battlemuffin-0.1.2.tar.gz
(7.8 kB
view hashes)