Skip to main content

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 获取玩家的信息和材质。

GitHub Repo stars PyPI PyPI - Python Version GitHub last commit (branch) GitHub

⚠️ 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


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.7.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

yggdrasil_mc-0.2.7-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file yggdrasil_mc-0.2.7.tar.gz.

File metadata

  • Download URL: yggdrasil_mc-0.2.7.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for yggdrasil_mc-0.2.7.tar.gz
Algorithm Hash digest
SHA256 a9ca5fc4a0418c5b6de124ca787a9152852dbe86cec98d90e90965049af8237a
MD5 c9aa44d78a19095f16fbe86c6382b085
BLAKE2b-256 f47c2b022df3ce4ae4f00cc753671992d4c267fc75c6c578a04883b210763b4a

See more details on using hashes here.

File details

Details for the file yggdrasil_mc-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: yggdrasil_mc-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for yggdrasil_mc-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 28785a569f09c5b359aa9735b77ccc5926c50e6fdd656bc5fc8b263ed6f58289
MD5 ee40efa63bc41e073952e9a7789e3ca5
BLAKE2b-256 ceb3f51313514c297b16d8a1f63ec16ba7e8627f0cbd85294fc8180df11fd8e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page