Skip to content

legopitstop/geysermc

Repository files navigation

geysermc

Tests PyPI Python Downloads Status Code style: black Issues

The unofficial Python wrapper for geysermc.org

Installation

Install the module with pip:

pip3 install geysermc

Update existing installation: pip3 install geysermc --upgrade

Links

Requirements

Name Description
Pillow Python Imaging Library (Fork)
requests Requests is a simple, yet elegant, HTTP library.
pydantic Data validation using Python type hints

Features

  • Get Microsoft xuid or gamertag.
  • Download any geyser project.
  • Get bedrock skin.

Examples

Show bedrock player skin

from geysermc import GeyserMC

api = GeyserMC()

xuid = api.get_xuid('legopitstop')
skin = api.get_skin(xuid)
image = api.get_raw_texture(skin.texture_id)
image.show()

Download Geyser plugin

from geysermc import GeyserMC

api = GeyserMC()

with open('geyser-spigot.jar', 'wb') as fd:
    data = api.get_download('geyser', 'spigot')
    fd.write(data)