Skip to main content

Simple IM Framework based on satori-python

Project description

Entari

lo su etheclim, ti zo entaem rish.

Licence PyPI PyPI - Python Version 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(f"{a + b =}")


app = Entari()
app.apply(WebsocketsInfo(port=5500, token="XXX"))

app.run()

Project details


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.4.0.tar.gz (15.2 kB view hashes)

Uploaded Source

Built Distribution

arclet_entari-0.4.0-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page