An open API service indexing awesome lists of open source software.

https://github.com/zakru/wynn.py

A Python wrapper for the Wynncraft public API
https://github.com/zakru/wynn.py

minecraft python-wrapper python3 wynncraft wynncraftapi

Last synced: 2 months ago
JSON representation

A Python wrapper for the Wynncraft public API

Awesome Lists containing this project

README

          

# wynn.py

[![Documentation Status](https://readthedocs.org/projects/wynnpy/badge/?version=latest)](https://wynnpy.readthedocs.io/en/latest/?badge=latest)
[![PyPI](https://img.shields.io/pypi/v/wynn.py)](https://pypi.org/project/wynn.py/)

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

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

Then there are two ways to access data inside

```python
>>> 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.