Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install wow.armoryapi

How to install wow.armoryapi

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install wow.armoryapi
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.8 Available View build log
0.7 Available View build log
Windows (64-bit)
0.8 Available View build log
0.7 Available View build log
Mac OS X (10.5+)
0.8 Available View build log
0.7 Available View build log
Linux (32-bit)
0.8 Available View build log
0.7 Available View build log
Linux (64-bit)
0.8 Available View build log
0.7 Available View build log
 
Author
License
GPL
Dependencies
Imports
Lastest release
version 0.8 on Jan 5th, 2011

Change history

Changelog
0.5 (09-13-10)
  • Initial release
0.6 (09-13-10)
  • Added doctest
0.7 (09-13-10)
  • More detailed doctest (also used as readme)
0.8 (09-16-10)
  • Fixed a typo in the doctest
  • Modified to fetch en_GB XML if Plone language is "en", if "de" -> de_DE XML, for better i18n (getCharacter(self, raiderName, raiderServer, raiderZone) -> getCharacter(self, raiderName, raiderServer, raiderZone, language)

Detailed Documentation

Introduction

The armory-API is a modified version of the armorypy @ http://code.google.com/p/armorypy/.

The additional info you can get from it:

  • Primary & secondary spec with name and icon (to build a icon link with wowhead or wow-europe)
  • Major and minor glyphs for the active spec with name, type and effect
  • 2v2, 3v3 and 5v5 arenateams with name, rating and ranking
  • Secondary professions (cooking, fishing etc.) with name and value
  • Prefix titles, such as Private, Twilight Vanquisher etc.
Usage

To use the API, just do an import like this

>>> from armory_api import Armory

Mock Armory.getCharacter

Returns a dictionary similar to the dictionary we would get from the API, so that this test can be used while offline

>>> from test_armory import mocked_getCharacter

Mocking the function

>>> Armory.getCharacter = mocked_getCharacter

First create an instance of the Armory object

>>> armory = Armory()

To get the character info, use getCharacter(name, realm, zone, language) currently only "de" and "en" are supported

>>> raider = armory.getCharacter("Kutschurft","Azshara","EU", "en")

Now you can get the info with get(<key>)

>>> name = raider.get("name")
>>> name == "Kutschurft"
True

>>> server = raider.get("server")
>>> server == "Azshara"
True

>>> zone = raider.get("zone")
>>> zone == "EU"
True

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.