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.2rc1.tar.gz (83.1 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.2rc1-py3-none-any.whl (94.0 kB view details)

Uploaded Python 3

File details

Details for the file graia-ariadne-0.5.2rc1.tar.gz.

File metadata

  • Download URL: graia-ariadne-0.5.2rc1.tar.gz
  • Upload date:
  • Size: 83.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.10 Linux/5.11.0-1027-azure

File hashes

Hashes for graia-ariadne-0.5.2rc1.tar.gz
Algorithm Hash digest
SHA256 b8f9927972366be27ade056ee0d7702654e2dadaf368410ee5b5a6b89ed3de41
MD5 9e83684b2fa803922894d1f64550bdb5
BLAKE2b-256 3efe5d5ae2ce251367267aebddfa786aaeee766aac55492919d9dd045d31dbab

See more details on using hashes here.

File details

Details for the file graia_ariadne-0.5.2rc1-py3-none-any.whl.

File metadata

  • Download URL: graia_ariadne-0.5.2rc1-py3-none-any.whl
  • Upload date:
  • Size: 94.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.10 Linux/5.11.0-1027-azure

File hashes

Hashes for graia_ariadne-0.5.2rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 f884f45acd80c3a6d74332b5b1dea8637e57be36fd3d9e57412738ca1975b2d6
MD5 389919311114736a607fb2c3cc3a82db
BLAKE2b-256 f736d53f0f024c21335e6d6f9632e84ebabfd0e04d3be4a8494b7843866fa84b

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