<div align="center">
# yggdrasil-mc
_A simple Python lib to get player info and texture from Mojang and Yggdrasil APIs._
> 一个简单的 Python 库,可从 Mojang 和 Yggdrasil APIs 获取玩家的信息和材质。
</div>
<p align="center">
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/SerinaNya/yggdrasil-mc?style=flat-square&link=https%3A%2F%2Fgithub.com%2FSerinaNya%2Fyggdrasil-mc">
<img src="https://img.shields.io/pypi/v/yggdrasil-mc?style=flat-square" alt="PyPI">
<img src="https://img.shields.io/pypi/pyversions/yggdrasil-mc?style=flat-square" alt="PyPI - Python Version">
<img src="https://img.shields.io/github/last-commit/SerinaNya/yggdrasil-mc/main?style=flat-square" alt="GitHub last commit (branch)">
<img src="https://img.shields.io/github/license/SerinaNya/yggdrasil-mc?style=flat-square" alt="GitHub">
</p>
## ⚠️ Attention
This package can be used with **Python 3.10+**.
## Usage
``` shell
pip3 install yggdrasil-mc
```
``` python
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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/SerinaNya/yggdrasil-mc",
"name": "yggdrasil-mc",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "yggdrasil, mc, api, mcapi, mojang, minecraft, littleskin, blessing skin",
"author": "SerinaNya",
"author_email": "34389622+SerinaNya@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/f4/7c/2b022df3ce4ae4f00cc753671992d4c267fc75c6c578a04883b210763b4a/yggdrasil_mc-0.2.7.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n\n# yggdrasil-mc\n\n_A simple Python lib to get player info and texture from Mojang and Yggdrasil APIs._\n\n> \u4e00\u4e2a\u7b80\u5355\u7684 Python \u5e93\uff0c\u53ef\u4ece Mojang \u548c Yggdrasil APIs \u83b7\u53d6\u73a9\u5bb6\u7684\u4fe1\u606f\u548c\u6750\u8d28\u3002\n\n</div>\n\n<p align=\"center\">\n\n<img alt=\"GitHub Repo stars\" src=\"https://img.shields.io/github/stars/SerinaNya/yggdrasil-mc?style=flat-square&link=https%3A%2F%2Fgithub.com%2FSerinaNya%2Fyggdrasil-mc\">\n<img src=\"https://img.shields.io/pypi/v/yggdrasil-mc?style=flat-square\" alt=\"PyPI\">\n<img src=\"https://img.shields.io/pypi/pyversions/yggdrasil-mc?style=flat-square\" alt=\"PyPI - Python Version\">\n<img src=\"https://img.shields.io/github/last-commit/SerinaNya/yggdrasil-mc/main?style=flat-square\" alt=\"GitHub last commit (branch)\">\n<img src=\"https://img.shields.io/github/license/SerinaNya/yggdrasil-mc?style=flat-square\" alt=\"GitHub\">\n\n</p>\n\n\n## \u26a0\ufe0f Attention\n\nThis package can be used with **Python 3.10+**.\n\n## Usage\n\n``` shell\npip3 install yggdrasil-mc\n```\n\n``` python\nfrom yggdrasil_mc.client import YggdrasilMC\n\nygg = YggdrasilMC()\nawait ygg.by_name_async(\"SerinaNya\")\n\n# return PlayerProfile\nPlayerProfile(\n id='8705a5560b7447e8ba869169c31fb5ef', \n name='SerinaNya', \n skin=PlayerSkin(\n url=Url('http://textures.minecraft.net/texture/7781fa8ed3e2aa907944ec0f1ec391ad05955eb9c6424d911d409b00a69ea516'), \n metadata=PlayerSkin_MetaData(model='slim')), \n cape=None)\n```\n",
"bugtrack_url": null,
"license": "AGPL-3.0-or-later",
"summary": "A simple Python lib to get player info and texture from Mojang and Yggdrasil APIs. / \u4e00\u4e2a\u7b80\u5355\u7684 Python \u5e93\uff0c\u53ef\u4ece Mojang \u548c Yggdrasil APIs \u83b7\u53d6\u73a9\u5bb6\u7684\u4fe1\u606f\u548c\u6750\u8d28\u3002",
"version": "0.2.7",
"project_urls": {
"Bug Tracker": "https://github.com/SerinaNya/yggdrasil-mc/issues",
"Homepage": "https://github.com/SerinaNya/yggdrasil-mc",
"Repository": "https://github.com/SerinaNya/yggdrasil-mc"
},
"split_keywords": [
"yggdrasil",
" mc",
" api",
" mcapi",
" mojang",
" minecraft",
" littleskin",
" blessing skin"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ceb3f51313514c297b16d8a1f63ec16ba7e8627f0cbd85294fc8180df11fd8e8",
"md5": "ee40efa63bc41e073952e9a7789e3ca5",
"sha256": "28785a569f09c5b359aa9735b77ccc5926c50e6fdd656bc5fc8b263ed6f58289"
},
"downloads": -1,
"filename": "yggdrasil_mc-0.2.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ee40efa63bc41e073952e9a7789e3ca5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 16470,
"upload_time": "2024-11-16T12:46:38",
"upload_time_iso_8601": "2024-11-16T12:46:38.213969Z",
"url": "https://files.pythonhosted.org/packages/ce/b3/f51313514c297b16d8a1f63ec16ba7e8627f0cbd85294fc8180df11fd8e8/yggdrasil_mc-0.2.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f47c2b022df3ce4ae4f00cc753671992d4c267fc75c6c578a04883b210763b4a",
"md5": "c9aa44d78a19095f16fbe86c6382b085",
"sha256": "a9ca5fc4a0418c5b6de124ca787a9152852dbe86cec98d90e90965049af8237a"
},
"downloads": -1,
"filename": "yggdrasil_mc-0.2.7.tar.gz",
"has_sig": false,
"md5_digest": "c9aa44d78a19095f16fbe86c6382b085",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 15575,
"upload_time": "2024-11-16T12:46:39",
"upload_time_iso_8601": "2024-11-16T12:46:39.428727Z",
"url": "https://files.pythonhosted.org/packages/f4/7c/2b022df3ce4ae4f00cc753671992d4c267fc75c6c578a04883b210763b4a/yggdrasil_mc-0.2.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-16 12:46:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SerinaNya",
"github_project": "yggdrasil-mc",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "yggdrasil-mc"
}