Simple IM Framework based on satori-python
Project description
Entari
lo su etheclim, ti zo entaem rish.
一个基于 Satori
协议的简易 IM framework
示例
from arclet.entari import ContextSession, Entari, EntariCommands, WebsocketsInfo
command = EntariCommands()
@command.on("add {a} {b}")
async def add(a: int, b: int, session: ContextSession):
await session.send(f"{a + b =}")
app = Entari()
app.apply(WebsocketsInfo(port=5500, token="XXX"))
app.run()
Project details
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.4.0.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for arclet_entari-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0534bc09bbb432230b28bc6e76a300f60953e3b64d5ee4ee040524353d2e50 |
|
MD5 | 162cea5e0eb34dd0dc550bd174ad19c5 |
|
BLAKE2b-256 | b41cf093e18184837d3c67618248531dce9c20a66f01f6fbb85248691014b521 |