Simple IM Framework based on satori-python
Project description
arclet-entari
一个基于 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.1.0.tar.gz
(12.2 kB
view hashes)
Built Distribution
Close
Hashes for arclet_entari-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b86a6ca5a44788b155ced7663999445661d7cda0efd8046272baa55812112755 |
|
MD5 | 0820968afd3d92ae2d68930bd766026e |
|
BLAKE2b-256 | 9595ca8f812a1319faa9efd8dd373d40548fc1a17b17057631ebb9527bccd0b5 |