semvec/pypi-packages huggingface dataset:
nonebot-plugin-llnonebot-api 0.1.0
为 LLNoneBot 提供 API 服务 / Provide API services for LLNoneBot
License: MIT
Requires Python: >=3.9

<!-- markdownlint-disable MD033 MD036 MD041 MD045 -->
<div align="center">
  <a href="https://v2.nonebot.dev/store">
    <img src="./docs/NoneBotPlugin.svg" width="300" alt="logo">
  </a>
</div>

<div align="center">

# NoneBot-Plugin-LLNoneBot-API

_✨ 为 LLNoneBot 提供 API 服务 ✨_

<a href="">
  <img src="https://img.shields.io/pypi/v/nonebot-plugin-liteloader-api.svg" alt="pypi" />
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
<a href="https://pdm.fming.dev">
  <img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fpdm-project%2F.github%2Fbadge.json" alt="pdm-managed">
</a>
<br/>
adofai 0.1.0rc0
Shared data model for authlib-injector yggdrasil implementation and Minecraft API services
License: MIT
Requires Python: <4.0,>=3.12
Keywords: minecraft, mc, authlib, authlib-injector, implementaion, abc, yggdrasil

# ADOFAI

*本项目和 A Dance Of Fire And Ice （中文名“冰与火之舞”）没有任何关系*

ADOFAI (Adjustable Data Objects For Authlib Injector) 是一组数据模型和配套工具，旨在简化自定义实现 Authlib-injector 的规范
Yggdrasil 服务端、客户端及其配套程序的过程。

Yggdrasil 是游戏 Minecraft 中身份验证服务的实现名称。

## 快速开始

### 安装

```shell
pip install adofai
```

### 示例

```python
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](https://github.com/silverteal/yggdrasil-scaffold) 是基于 ADOFAI 和 FastAPI 的 Yggdrasil
身份验证协议实现脚手架。

[Yggdrasil Client](https://github.com/Silverteal/yggdrasil-client) 是基于 ADOFAI 和 aiohttp 的 Minecraft Yggdrasil
协议兼容客户端，支持 Mojang 后端。