Euler OneBot
一个无聊的 OneBot 实现,完全使用 python 语言,基于 lagrange-python
WIP...吗?
本项目处于极早期开发阶段,如你所见,几十个commit()
啊不过他其实还比较稳定
安装使用
- 获取本项目;
- 方式1:直接clone
- 方式2:下载包裹并编写主文件
pip install euler-onebot
- 下载
lagrange(即 lagrange-python 的 package 部分),放在本项目main.py的同目录 (为什么不走pypi呢?啊他有点延后()); - 运行,填写配置文件,签名要求与其他 LagrangeV2 系列项目相同,请自行解决;
- 大功告成!
另类使用
从 0.0.2 版本开始,Euler OneBot 也作为独立的 PyPi Package 存在,您可以安装后把它当作一个 OneBot 风格 API 的 NTQQ 协议库使用。
开发
Euler OneBot 使用 uv
支持情况
API 类型
| API 名称 | 支持状态 |
|---|---|
| send_private_msg | ✅ |
| send_group_msg | ✅ |
| send_msg | ✅ |
| delete_msg | ✅ |
| get_msg | ✅ |
| get_forward_msg | ❌ |
| send_like | ❌ |
| set_group_kick | ❌ |
| set_group_ban | ❌ |
| set_group_whole_ban | ❌ |
| set_group_admin | ❌ |
| set_group_card | ❌ |
| set_group_name | ❌ |
| set_group_leave | ❌ |
| set_group_special_title | ❌ |
| set_friend_add_request | ❌ |
| set_group_add_request | ❌ |
| get_login_info | ❌ |
| get_stranger_info | ✅ |
| get_friend_list | ❌ |
| get_group_info | ✅ |
| get_group_list | ❌ |
| get_group_member_info | ❌ |
| get_group_member_list | ❌ |
| get_status | ❌ |
| get_version_info | ✅ |
事件类型
| 事件名称 | 支持状态 |
|---|---|
| message.private | ✅ |
| message.group | ✅ |
| notice.group_upload | ❌ |
| notice.group_admin | ❌ |
| notice.group_decrease | ✅ |
| notice.group_increase | ✅ |
| notice.group_ban | ✅ |
| notice.friend_add | ❌ |
| notice.group_recall | ✅ |
| notice.friend_recall | ✅ |
| notice.notify.poke | ✅ |
| notice.notify.lucky_king | ❌ |
| notice.notify.honor | ❌ |
| notice.reaction | ✅ |
| request.friend | ❌ |
| request.group | ❌ |
| meta_event.lifecycle | ❌ |
| meta_event.heartbeat | ✅ |
消息段类型
| 消息段类型 | 支持状态 |
|---|---|
| text | ✅ |
| at | ✅ |
| reply | ✅ |
| face | ✅ |
| poke | ❌ |
| mface | ✅ |
| node | ❌ |
| forward | ❌ |
| image | ✅ |
| record | ✅ |
| video | ✅ |
| contact | ❌ |
| location | ❌ |
| music | ❌ |
| custom | ❌ |
| redbag | ❌ |
| rps | ❌ |
| dice | ❌ |
| shake | ❌ |
| json | ❌ |
| xml | ❌ |
| markdown | ❌ |
通信方式
| 通信方式 | 支持状态 |
|---|---|
| HTTP | ❌ |
| HTTP Webhook | ❌ |
| 正向 WebSocket | ✅ |
| 反向 WebSocket | ❌ |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file euler_onebot-0.0.2.tar.gz.
File metadata
- Download URL: euler_onebot-0.0.2.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b4e53fe5f5974bd365abc2410380570620908e57c24dc1e58029799b014652e
|
|
| MD5 |
05c6e9e009741f1a0e8b4daea614bc52
|
|
| BLAKE2b-256 |
14dcff4268850629ed19e8a950c369fd8916499298f3f3813f9fd7d822be9272
|
Provenance
The following attestation bundles were made for euler_onebot-0.0.2.tar.gz:
Publisher:
pypi_upload.yaml on HarcicYang/EulerOneBot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
euler_onebot-0.0.2.tar.gz -
Subject digest:
1b4e53fe5f5974bd365abc2410380570620908e57c24dc1e58029799b014652e - Sigstore transparency entry: 2223809329
- Sigstore integration time:
-
Permalink:
HarcicYang/EulerOneBot@4f3cab6541bce6d6c868086559c3f1611df74748 -
Branch / Tag:
refs/tags/ver0.0.2 - Owner: https://github.com/HarcicYang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_upload.yaml@4f3cab6541bce6d6c868086559c3f1611df74748 -
Trigger Event:
release
-
Statement type:
File details
Details for the file euler_onebot-0.0.2-py3-none-any.whl.
File metadata
- Download URL: euler_onebot-0.0.2-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa8fc2c0689288476dcb435056b09d34c21fdaf5b5705f1712c823a42fd23078
|
|
| MD5 |
3633ee82ae3e54c47574e8c27317f5d1
|
|
| BLAKE2b-256 |
1e9167d2f4c6aa26b13d0f60b7fb7f6ca9a023cdfd61be1126bee1856ad6c0fb
|
Provenance
The following attestation bundles were made for euler_onebot-0.0.2-py3-none-any.whl:
Publisher:
pypi_upload.yaml on HarcicYang/EulerOneBot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
euler_onebot-0.0.2-py3-none-any.whl -
Subject digest:
aa8fc2c0689288476dcb435056b09d34c21fdaf5b5705f1712c823a42fd23078 - Sigstore transparency entry: 2223810066
- Sigstore integration time:
-
Permalink:
HarcicYang/EulerOneBot@4f3cab6541bce6d6c868086559c3f1611df74748 -
Branch / Tag:
refs/tags/ver0.0.2 - Owner: https://github.com/HarcicYang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_upload.yaml@4f3cab6541bce6d6c868086559c3f1611df74748 -
Trigger Event:
release
-
Statement type: