-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,35 @@ | ||
<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 src="https://img.shields.io/github/stars/SerinaNya/yggdrasil-mc?style=social" alt="GitHub Repo stars"> | ||
<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> | ||
|
||
A simple Python lib to get player info and texture from Mojang and Yggdrasil APIs. | ||
|
||
一个简单的 Python 库,可从 Mojang 和 Yggdrasil APIs 获取玩家的信息和材质。 | ||
|
||
## Attention | ||
|
||
This package can run in **Python 3.10+ ONLY**. | ||
This package can be used with **Python 3.10+ ONLY**. | ||
|
||
## Usage | ||
|
||
``` shell | ||
pip3 install yggdrasil-mc | ||
``` | ||
|
||
``` python | ||
from yggdrasil_mc.client import YggdrasilMC | ||
|
||
ygg = YggdrasilMC() | ||
await ygg.by_name_async("SerinaNya") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters