Pre-release
This release is a pre-release and may not be stable for production use.
ADOFAI
本项目和 A Dance Of Fire And Ice (中文名“冰与火之舞”)没有任何关系
ADOFAI (Adjustable Data Objects For Authlib Injector) 是一组数据模型和配套工具,旨在简化自定义实现 Authlib-injector 的规范 Yggdrasil 服务端、客户端及其配套程序的过程。
Yggdrasil 是游戏 Minecraft 中身份验证服务的实现名称。
快速开始
安装
pip install adofai
示例
from adofai import GameName, TextureUrl
from adofai.models import GameProfile, TextureProfile, TextureProperty
from adofai.utils.uuid import offline_uuid
from adofai.utils.signing import dummy_key
texture = TextureProfile(
skin=TextureProperty(
url=TextureUrl("https://something"),
metadata={"model": "slim"}
),
cape=TextureProperty(
url=TextureUrl("https://yetanother")
)
)
game_profile = GameProfile(
name="Notch",
id=offline_uuid(GameName("Notch")),
texture=texture,
extra_properties={"uploadableTextures": "skin,cape"}
)
print(game_profile.serialize("full", dummy_key()))
另请参阅
Yggdrasil Scaffold 是基于 ADOFAI 和 FastAPI 的 Yggdrasil 身份验证协议实现脚手架。
Yggdrasil Client 是基于 ADOFAI 和 aiohttp 的 Minecraft Yggdrasil 协议兼容客户端,支持 Mojang 后端。
Metadata
Release files for adofai 0.1.0rc0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| adofai-0.1.0rc0.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adofai-0.1.0rc0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / adofai-0.1.0rc0.tar.gz
| Download URL | adofai-0.1.0rc0.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ff830744a3ff6a8d19725f9b54d279b2859e2e3c4d9cc54b228bedeed804c1d
|
|
BLAKE2b-256 checksum How to use checksums |
7bdde54037a7b91d98cbb253405fe8d7d2de86005c5c0427ac5a8dad95184c54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Windows/10
|
Release files / adofai-0.1.0rc0-py3-none-any.whl
| Download URL | adofai-0.1.0rc0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
908de25012f3cd84411d9bf2c3a42030f5a84be2731fe7b3ae46fdc9dc56ebf2
|
|
BLAKE2b-256 checksum How to use checksums |
3b75bb32128674a2c01aeba7c3a1ff3b01062fd4f333b86615824ae4af9e9a9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Windows/10
|