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.0.tar.gz
(13.5 kB
view hashes)
Built Distribution
Close
Hashes for arclet_entari-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64a50687c47396fb490ce0f7071b7beb9cca3af2ec9f73f6911c7575f472cb24 |
|
MD5 | 097da72e6dd0373c0d3b0dcdff17b941 |
|
BLAKE2b-256 | 01d28bfa60641561be54197f753c6a399485f4275baba513d6eb22fea2fa72b4 |