# 安装

# Mirai, Mirai API HTTP

首先你需要搭建起一个 mirai 的运行环境.

你可以参考 python-mirai 的说明文档 使用 mirai-console启动无头客户端

# aiomirai

# 安装

# 从 PyPI 安装

命令行
pip install aiomirai

# 从 Github 源代码仓库安装

命令行
pip install git+git://github.com/AsakuraMizu/aiomirai.git#egg=aiomirai

# 手动安装

命令行
git clone https://github.com/AsakuraMizu/aiomirai.git
cd aiomirai
pip install -p
python setup.py install

# 使用其他工具

如果您是 Python 开发者, 您或许会使用 virtualenv, pipenv, poetry 等工具.

# 可选功能

命令行
# 全部功能
pip install aiomirai[all]
# 事件接收: 通过 HTTP POST 上报
pip install aiomirai[report]
# 事件接收: 通过 HTTP 轮询
pip install aiomirai[poll]
# 事件接收: 通过 WebSocket
pip install aiomirai[ws]