aiowowapi.wowapi module

class aiowowapi.wowapi.WowApi(*args, **kwargs)

Bases: API

async static format_wow_gold(money: int) str

Converts a WoW money value to a formatted string of Gold, Silver, and Copper

Parameters

money (int) – A WoW currency/money value in copper

Returns

{}g {}s {}c

Return type

str

async get_realm_slug(realm_name: str) Optional[str]

Attempts to match user input with a WoW realm and return its slug

Parameters

realm_name (str) – A string to query the realms index with ( full name, id, short name, etc)

Returns

A matching realm’s slug

Return type

str

Parses a World of Warcraft Armoury link and returns the character’s name, realm, and region

Parameters

url (str) – A WoW armoury link (ex: https://worldofwarcraft.com/en-us/character/us/{slug}/{character})

Returns

{‘name’: name, ‘realm’: realm_slug, ‘region’: region}

Return type

dict