/wynn.py

A Python wrapper for the Wynncraft public API

Primary LanguagePythonMIT LicenseMIT

wynn.py

Documentation Status PyPI

A Python wrapper for the Wynncraft public API

Basic usage

API wrappers are found under the wynn package. To fetch a player's data, for example, you can use

>>> player = wynn.player.get_player('playerName')

Then there are two ways to access data inside

>>> player.username
'playerName'
>>> player['username']
'playerName'

For documentation of the objects returned, see the Wynncraft API docs: https://docs.wynncraft.com/

Relevant sections are also linked in this wrapper's documentation.