Skip to main content

Another elegant framework for mirai and mirai-api-http v2.

Project description

Ariadne

Another elegant framework for mirai and mirai-api-http v2.

接受当下, 面向未来.

PyPI PyPI Pre Release Python Version Python Implementation

docs API docs black isort License

本项目适用于 mirai-api-http 2.0 以上版本.

Ariadne 是 Graia Project 继承了 Application 并进行了许多改进后产生的作品, 相信它可以给你带来良好的 Python QQ Bot 开发体验.

注意, 本框架需要 mirai-api-http v2.

安装

poetry add graia-ariadne

pip install graia-ariadne

我们强烈建议使用 poetry 进行包管理

开始使用

from graia.ariadne.app import Ariadne
from graia.ariadne.message.chain import MessageChain
from graia.ariadne.message.element import Plain
from graia.ariadne.model import Friend, MiraiSession

app = Ariadne(MiraiSession(host="http://localhost:8080", verify_key="ServiceVerifyKey", account=123456789))


@app.broadcast.receiver("FriendMessage")
async def friend_message_listener(app: Ariadne, friend: Friend):
    await app.sendMessage(friend, MessageChain.create([Plain("Hello, World!")]))


app.launch_blocking()

更多信息请看 快速开始

讨论

QQ 交流群: 邀请链接

QQ 群不定时清除不活跃成员, 请自行重新申请入群.

文档

API 文档 官方文档 社区文档 鸣谢

如果认为本项目有帮助, 欢迎点一个 Star.

协议

本项目以 GNU AGPL-3.0 作为开源协议, 这意味着你需要遵守相应的规则.

持续集成 (CI) 状态

Documentation Status pre-commit.ci status

Build and deploy API Docs Publish to PyPI

开发版资源 / 参与开发

Dev PyPI Version 开发分支文档 开发分支 开始开发

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graia-ariadne-0.5.2rc3.tar.gz (83.1 kB view hashes)

Uploaded Source

Built Distribution

graia_ariadne-0.5.2rc3-py3-none-any.whl (94.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page