A simple Python lib to get player info and texture from Mojang and Yggdrasil APIs. / 一个简单的 Python 库,可从 Mojang 和 Yggdrasil APIs 获取玩家的信息和材质。
Project description
yggdrasil-mc
A simple Python lib to get player info and texture from Mojang and Yggdrasil APIs.
一个简单的 Python 库,可从 Mojang 和 Yggdrasil APIs 获取玩家的信息和材质。
⚠️ Attention
This package can be used with Python 3.10+.
Usage
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)
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.2.5.tar.gz
(15.4 kB
view details)
Built Distribution
File details
Details for the file yggdrasil_mc-0.2.5.tar.gz
.
File metadata
- Download URL: yggdrasil_mc-0.2.5.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e407d4cb4f54fc78cb4a8fb7d639c7aef332b553573c02e01e267d752f0217 |
|
MD5 | 850e02e3d7a8265d5e1a712f17221707 |
|
BLAKE2b-256 | e5fe25156b4dcccdd453c203f7d44100296b4dcfa1c5e58b838faffbd5806f1d |
File details
Details for the file yggdrasil_mc-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: yggdrasil_mc-0.2.5-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea96cd6d04d6e0b770f37c8fc498cc2f701dc23fe3348fd7b01d51926f82e3df |
|
MD5 | d6d1812301b64f1262b6c61105ce7471 |
|
BLAKE2b-256 | a671a6e10fb440680196c69947e46ff3aa841bb91266c97d3f8114ccb93c67f1 |