A simple Python lib to get player info and texture from Mojang and Yggdrasil APIs.
一个简单的 Python 库,可从 Mojang 和 Yggdrasil APIs 获取玩家的信息和材质。
This package can be used with Python 3.10+.
pip3 install yggdrasil-mc
from yggdrasil_mc.client import YggdrasilMC
ygg = YggdrasilMC()
await ygg.by_name_async("SerinaNya")
# return PlayerProfile
PlayerProfile(
id='8705a5560b7447e8ba869169c31fb5ef',
name='SerinaNya',
skin=PlayerSkin(
url=Url('http://textures.minecraft.net/texture/7781fa8ed3e2aa907944ec0f1ec391ad05955eb9c6424d911d409b00a69ea516'),
metadata=PlayerSkin_MetaData(model='slim')),
cape=None)