<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/e7/2e/d03aa1470a9140d111734e2629f3035663ae23247b7e0d4c91200cb87a24/yggdrasil_mc-0.2.6.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.6",
"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": "3cde736c6a1c1a0c694e5043ab1b66dcc00970512560a4d1ad6ee9040177bb97",
"md5": "0a102299872eef739713d8f65a55eff3",
"sha256": "ce3319667a8e80c966fd477f00ce6a78a45ceb36a4049f106df7e3a8f1f6df09"
},
"downloads": -1,
"filename": "yggdrasil_mc-0.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0a102299872eef739713d8f65a55eff3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 16346,
"upload_time": "2024-09-08T08:42:01",
"upload_time_iso_8601": "2024-09-08T08:42:01.118036Z",
"url": "https://files.pythonhosted.org/packages/3c/de/736c6a1c1a0c694e5043ab1b66dcc00970512560a4d1ad6ee9040177bb97/yggdrasil_mc-0.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e72ed03aa1470a9140d111734e2629f3035663ae23247b7e0d4c91200cb87a24",
"md5": "2a761da15e123698cdf14497f300e00f",
"sha256": "5bec5860de97c361057fffcfebf6b7f3f9a812e644e7cb724ecb5548d5f13ad6"
},
"downloads": -1,
"filename": "yggdrasil_mc-0.2.6.tar.gz",
"has_sig": false,
"md5_digest": "2a761da15e123698cdf14497f300e00f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 15445,
"upload_time": "2024-09-08T08:42:02",
"upload_time_iso_8601": "2024-09-08T08:42:02.069894Z",
"url": "https://files.pythonhosted.org/packages/e7/2e/d03aa1470a9140d111734e2629f3035663ae23247b7e0d4c91200cb87a24/yggdrasil_mc-0.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-08 08:42:02",
"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"
}