A simple Python lib to get player info and texture from Mojang and Blessing Skin.
Project description
yggdrasil-mc
A simple Python lib to get player info and texture from Mojang and Blessing Skin.
一个简单的 Python 库,可从 Mojang 和 Blessing Skin 获取玩家的信息和材质。
Attention
This package can run in Python 3.10+ ONLY.
Usage
-
Download the package from PyPI
pip3 install -U yggdrasil-mc
-
from yggdrasil_mc.ygg import YggdrasilPlayerUuidApi player_name = "w84" player = YggdrasilPlayerUuidApi.getMojangServer(player_name) if player.existed: print(player.id)
After you run these snippet, you will get the following output:
ca244462f8e5494791ec98f0ccf505ac
Note that this package also provide the asyncio version which is powered by aiohttp:
from yggdrasil_mc.ygg_async import YggdrasilPlayerUuidApi
player_name = "w84"
async get_player_uuid(player_name: str = player_name)
player = await YggdrasilPlayerUuidApi.getMojangServer(player_name)
return player.id
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yggdrasil_mc-0.1b3.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for yggdrasil_mc-0.1b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf94a65c46a7f9e313b345edb538b531f1ac1a34e1208df54f73bf4768160c34 |
|
MD5 | d8ca8afda6bf120952f069aa6423f49d |
|
BLAKE2b-256 | 779b3f95acc1460578126a5d7e062bedda3c1d65dbaaf19e1f9c359cb3f97529 |