本项目适用于 mirai-api-http 2.0 以上版本.
Ariadne 是 Graia Project 继承了 Application 并进行了许多改进后产生的作品,
相信它可以给你带来良好的 Python QQ Bot 开发体验.
注意, 本框架需要 mirai-api-http v2.
安装
pdm add graia-ariadne
或
poetry add graia-ariadne
或
pip install graia-ariadne
开始使用
from graia.ariadne.app import Ariadne
from graia.ariadne.connection.config import config
from graia.ariadne.model import Friend
app = Ariadne(config(verify_key="ServiceVerifyKey", account=123456789))
@app.broadcast.receiver("FriendMessage")
async def friend_message_listener(app: Ariadne, friend: Friend):
await app.send_message(friend, "Hello, World!")
Ariadne.launch_blocking()
讨论
QQ 交流群: 邀请链接
QQ 群不定时清除不活跃成员, 请自行重新申请入群.
文档
如果认为本项目有帮助, 欢迎点一个 Star.
协议
本项目以 GNU AGPL-3.0 作为开源协议, 这意味着你需要遵守相应的规则.
持续集成 (CI) 状态
参与开发
Release files for graia-ariadne 0.11.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| graia_ariadne-0.11.7.tar.gz | 105.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| graia_ariadne-0.11.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 230.5 kB
Release files / graia_ariadne-0.11.7.tar.gz
| Download URL | graia_ariadne-0.11.7.tar.gz |
|---|---|
| Size | 105.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa2e964e7e0178299da9890350c14e5932212fc9083c8a78195d4738a3c9f2ed
|
|
BLAKE2b-256 checksum How to use checksums |
d80544865a1ea93c7502685b467c3c0a20565342f68f8c1e31c3112f09764c88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / graia_ariadne-0.11.7-py3-none-any.whl
| Download URL | graia_ariadne-0.11.7-py3-none-any.whl |
|---|---|
| Size | 125.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
151840a25348d092108c03363e93e915c17bab15a15772af097b38740cce55fa
|
|
BLAKE2b-256 checksum How to use checksums |
8956fa49d564df405c94fa40c75bc273aff94a1ea446cb27e2509a7069a07fb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|