Simple IM Framework based on satori-python
Project description
Entari
lo su etheclim, ti zo entaem rish.
一个基于 Satori
协议的简易 IM framework
示例
复读:
from arclet.entari import Session, Entari, WS
app = Entari(WS(host="127.0.0.1", port=5140, path="satori"))
@app.on_message()
async def repeat(session: Session):
await session.send(session.content)
app.run()
指令 add {a} {b}
:
from arclet.entari import Session, Entari, EntariCommands, WS
command = EntariCommands()
@command.on("add {a} {b}")
async def add(a: int, b: int, session: Session):
await session.send(f"{a + b = }")
app = Entari(WS(port=5500, token="XXX"))
app.run()
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
arclet_entari-0.5.0.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for arclet_entari-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8072581455c47d55e89b99dc657521d4b2cacd5aa62842ac16ff697baf14369d |
|
MD5 | 9d5801fd2f68bb575e7891e7619c4f13 |
|
BLAKE2b-256 | e4c87ad95dbda3ea6023cb9ee42b9c1098d0b435ad24199d8699351977df4a1e |