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.2.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for arclet_entari-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fbfed4ed968f95e00298cbe5cfa2254a02571a9eeee66f84620270d08947fdb |
|
MD5 | 6e2456629366e7a5663d087a41d85b49 |
|
BLAKE2b-256 | 82aa06ac05c0d389efe3ab2d10f07b979347222ce2d29bc29b4a761b64786e9d |