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 AGPLv3 作为开源协议, 这意味着你需要遵守相应的规则.

持续集成 (CI) 状态

Dev PyPI Version Documentation Status

Build and deploy API Docs Publish to PyPI

开发版资源 / 参与开发

开发分支文档 开发分支 开发版 PyPI 开始开发

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.1rc2.tar.gz (81.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graia_ariadne-0.5.1rc2-py3-none-any.whl (92.5 kB view details)

Uploaded Python 3

File details

Details for the file graia-ariadne-0.5.1rc2.tar.gz.

File metadata

  • Download URL: graia-ariadne-0.5.1rc2.tar.gz
  • Upload date:
  • Size: 81.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.9 Linux/5.11.0-1025-azure

File hashes

Hashes for graia-ariadne-0.5.1rc2.tar.gz
Algorithm Hash digest
SHA256 fb89f220aae98f16fb15d98b2f3dfb98449e337be59ecaaa48a4b7068ac05a7f
MD5 da94fbc11aa15f04a47a283bd70a224b
BLAKE2b-256 e3f2637325e34af73751dd4e9f50e6d68231c3fd76496050bb3df344435cea6e

See more details on using hashes here.

File details

Details for the file graia_ariadne-0.5.1rc2-py3-none-any.whl.

File metadata

  • Download URL: graia_ariadne-0.5.1rc2-py3-none-any.whl
  • Upload date:
  • Size: 92.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.9 Linux/5.11.0-1025-azure

File hashes

Hashes for graia_ariadne-0.5.1rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 161839c00b29024ef20202783f1d0ccf6cef923c8d2d71cc7ca7b8340082ca6a
MD5 af5cc95b2f12ec252537dfa97fa748b0
BLAKE2b-256 e3292a9fa6f38cc6a4134af01e67b4e6acab0381f226074ac436304268ff72b0

See more details on using hashes here.

Supported by

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