Skip to main content

Euler OneBot

一个无聊的 OneBot 实现,完全使用 python 语言,基于 lagrange-python

OneBot V11 GPL-3.0

WIP...吗?

本项目处于极早期开发阶段,如你所见,几十个commit()

啊不过他其实还比较稳定

安装使用

  1. 获取本项目;
    • 方式1:直接clone
    • 方式2:下载包裹并编写主文件
      pip install euler-onebot
      
  2. 下载 lagrange (即 lagrange-python 的 package 部分),放在本项目 main.py的同目录 (为什么不走pypi呢?啊他有点延后());
  3. 运行,填写配置文件,签名要求与其他 LagrangeV2 系列项目相同,请自行解决;
  4. 大功告成!

另类使用

从 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

euler_onebot-0.0.2.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

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

euler_onebot-0.0.2-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

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

Hashes for euler_onebot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1b4e53fe5f5974bd365abc2410380570620908e57c24dc1e58029799b014652e
MD5 05c6e9e009741f1a0e8b4daea614bc52
BLAKE2b-256 14dcff4268850629ed19e8a950c369fd8916499298f3f3813f9fd7d822be9272

See more details on using hashes here.

Provenance

The following attestation bundles were made for euler_onebot-0.0.2.tar.gz:

Publisher: pypi_upload.yaml on HarcicYang/EulerOneBot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for euler_onebot-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa8fc2c0689288476dcb435056b09d34c21fdaf5b5705f1712c823a42fd23078
MD5 3633ee82ae3e54c47574e8c27317f5d1
BLAKE2b-256 1e9167d2f4c6aa26b13d0f60b7fb7f6ca9a023cdfd61be1126bee1856ad6c0fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for euler_onebot-0.0.2-py3-none-any.whl:

Publisher: pypi_upload.yaml on HarcicYang/EulerOneBot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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