yggdrasil-mc


Nameyggdrasil-mc JSON
Version 0.2.4 PyPI version JSON
download
home_pagehttps://github.com/SerinaNya/yggdrasil-mc
SummaryA simple Python lib to get player info and texture from Mojang and Yggdrasil APIs. / 一个简单的 Python 库,可从 Mojang 和 Yggdrasil APIs 获取玩家的信息和材质。
upload_time2024-04-27 03:20:35
maintainerNone
docs_urlNone
authorSerinaNya
requires_python<4.0,>=3.10
licenseAGPL-3.0-or-later
keywords yggdrasil mc api mcapi mojang minecraft littleskin blessing skin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <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/5d/cdfb24fc9a9752e2d550d2b40ef71b9362e78731c34e3c210813744abd17/yggdrasil_mc-0.2.4.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.4",
    "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": "6a1305aa79410b028fad529bf8cf53fffed3e5c8156e4d6bd5caab5228b40338",
                "md5": "8c4231029e5650594edb99c6b704d680",
                "sha256": "ecf667e9a4b59a8ef7ad95b102d2ff6625190e4e97dc049d92bdb3a8b524c725"
            },
            "downloads": -1,
            "filename": "yggdrasil_mc-0.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c4231029e5650594edb99c6b704d680",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 16337,
            "upload_time": "2024-04-27T03:20:33",
            "upload_time_iso_8601": "2024-04-27T03:20:33.627647Z",
            "url": "https://files.pythonhosted.org/packages/6a/13/05aa79410b028fad529bf8cf53fffed3e5c8156e4d6bd5caab5228b40338/yggdrasil_mc-0.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f45dcdfb24fc9a9752e2d550d2b40ef71b9362e78731c34e3c210813744abd17",
                "md5": "d44261a0cd30cb22505f2e0c1c3b1af4",
                "sha256": "1a2a45a62f11db8f68c71aba461444a35af0378ad861f7b7f3eaeb8640fe9169"
            },
            "downloads": -1,
            "filename": "yggdrasil_mc-0.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "d44261a0cd30cb22505f2e0c1c3b1af4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 15441,
            "upload_time": "2024-04-27T03:20:35",
            "upload_time_iso_8601": "2024-04-27T03:20:35.467901Z",
            "url": "https://files.pythonhosted.org/packages/f4/5d/cdfb24fc9a9752e2d550d2b40ef71b9362e78731c34e3c210813744abd17/yggdrasil_mc-0.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 03:20:35",
    "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"
}
        
Elapsed time: 0.26659s