Skip to main content

Simple IM Framework based on satori-python

Project description

Entari

lí no etheclim, nann ze entám rish.

Licence PyPI PyPI - Python Version Entari

一个基于 Satori 协议的简易 IM framework

示例

复读:

from arclet.entari import Session, Entari, WS

app = Entari(WS(host="127.0.0.1", port=5140, path="satori"))


@app.on_message()
async def repeat(session: Session):
    await session.send(session.content)


app.run()

指令 add {a} {b}:

from arclet.entari import Session, Entari, EntariCommands, WS

command = EntariCommands()


@command.on("add {a} {b}")
async def add(a: int, b: int, session: Session):
    await session.send(f"{a + b = }")


app = Entari(WS(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.5.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

arclet_entari-0.5.1-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file arclet_entari-0.5.1.tar.gz.

File metadata

  • Download URL: arclet_entari-0.5.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-1022-azure

File hashes

Hashes for arclet_entari-0.5.1.tar.gz
Algorithm Hash digest
SHA256 62bf203153fcfca8a6f35c767ea7a67bf408bb7837de03dcce9b85c143ecc214
MD5 44b2115ab4aeb0edd60dca3d4aea740a
BLAKE2b-256 7b13e88e5042fc799c23a5baa814a995a1f54add062415624543951edf32ea05

See more details on using hashes here.

File details

Details for the file arclet_entari-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: arclet_entari-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-1022-azure

File hashes

Hashes for arclet_entari-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04797d612c799e48f08108de77a48a6bffb629dc9c3f88c80931297cbf51a1aa
MD5 01cd8953450155b70ed25d47e0afba5d
BLAKE2b-256 4debdeb5a38a8c445d1f670795e0726b497828f1db0307b5d6e8c9e8844be922

See more details on using hashes here.

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