【文件属性】:
文件名称:Mojang-API-Wrapper:Mojang API的异步包装器
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-08 15:40:55
Python
Mojang-API-包装器
概述
Pythonic包装器使用await和async
Mojang的API和身份验证API的100%覆盖率
安装
要安装,只需运行以下命令:
# Linux/macOS
python3 -m pip install -U MojangAPI
# Windows
py -3 -m pip install -U MojangAPI
例子
访问玩家的皮肤
from MojangAPI import Client
import asyncio
async def main ():
user = await Client . User . createUser ( 'Minecraft playername' )
profile = await user . getProfile ()
print ( profile . skin ) #
【文件预览】:
Mojang-API-Wrapper-master
----MojangAPI()
--------Client.py(9KB)
--------Endpoints.py(1KB)
--------Request.py(2KB)
--------__init__.py(1B)
--------Errors.py(745B)
--------DataService.py(2KB)
--------Tokens.py(74B)
----License(1KB)
----Docs.md(12KB)
----requirements.txt(15B)
----setup.py(840B)
----README.md(2KB)