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_message(f"{a + b =}")
app = Entari()
app.apply(WebsocketsInfo(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.3.1.tar.gz
(13.9 kB
view hashes)
Built Distribution
Close
Hashes for arclet_entari-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00b7d1d2c918082d8cb3e7f201e37db3cbe14e960279e1d07d1e68707a1814dc |
|
MD5 | 3e1e67e4c912ea7979918b7ddd8819a1 |
|
BLAKE2b-256 | 3ef54d9dc6352f17e6d2f0787549d49186f05d9152074957581c6045f5a2a483 |