Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0rc0

PyPI

adofai

Shared data model for authlib-injector yggdrasil implementation and Minecraft API services

abcauthlibauthlib-injectorimplementaionmcminecraftyggdrasil
Published6 Oct 2024
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.1.0rc0 documentation

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 后端。

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
pycryptodome
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "<4.0,>=3.12",
  "evaluation": "NOT_EVALUATED"
}
pycryptodome<4.0.0,>=3.21.0runtime

Distribution files

2 collected
adofai-0.1.0rc0-py3-none-any.whl

bdist_wheel · 10.51 KB · Python py3

Source file
adofai-0.1.0rc0.tar.gz

sdist · 8.64 KB · Python source

Source file

Repository

PENDING
silverteal/adofai

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:45 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:af374e8fa6a8d5a3cb803787ce1fb041b2b047a7624cf7ccd3667ccb0e925b39

Other collected versions

View all collected versions →