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.2.0.tar.gz
(12.7 kB
view hashes)
Built Distribution
Close
Hashes for arclet_entari-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d532aff2744bd122d8200447d0ff8571d481fd60c6581b8e57da43ef9663d9ef |
|
MD5 | 946666bbe37dd49077cc6fb44db32064 |
|
BLAKE2b-256 | fde40e4b46c881edbf24cc8a14be1389afc6760f9b3b0c8f75541deb152f74bb |