Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mostm/pywow
Python WoW API Wrapper
https://github.com/mostm/pywow
Last synced: about 1 month ago
JSON representation
Python WoW API Wrapper
- Host: GitHub
- URL: https://github.com/mostm/pywow
- Owner: mostm
- License: mit
- Created: 2017-10-24T10:03:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T13:02:52.000Z (about 7 years ago)
- Last Synced: 2024-12-21T22:50:31.504Z (about 1 month ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyWoW
Python WoW API Wrapper## Installation
1. `pip install -U pywow`
2. Get API Key for WoW Community [here](https://dev.battle.net/apps/register)
4. Create/add to file `config.py` in project folder with these values:
```python
blizzard_key = 'Your_WoW_Community_APIKEY_here'
```## Usage
**! Only EU region is currently supported**
```python
import wow
```## Quick Tutorial
#### Get character
```python
char = wow.Character(name='CharacterName', realm='Character realm')
print('{name} on {realm} ({xplvl}lvl/{ilvl})\nPlaying as {class},{race} at {side}'.format(
{'name':char.full_name, 'realm':char.realm.name, 'xplvl':char.level['xp']
'ilvl':char.level['item'], 'class':char.wow_class.name, 'race':char.race.name,
'side':char.race.side}))
```