Skip to main content

simqd

SIMQ服务提供者,同时也是SIMQ消息的消费者。

安装

pip install simqd

使用

命令帮忙信息

d:\simqd>simqd --help
Usage: simqd [OPTIONS]

Options:
  -p, --service-provider TEXT
  -s, --base-url TEXT
  -a, --api-key TEXT
  -w, --workers INTEGER
  --help                       Show this message and exit.

使用案例

simqd -p simqdsvr.debug.DebugPing -p simqdsvr.debug.DebugEcho

服务提供者开发

simqdsvr/debug.py

from simqdsvr.service_providers import SimqServiceProvider

__all__ = [
    "DebugPing",
    "DebugEcho",
]


class DebugPing(SimqServiceProvider):
    channel = "debug.ping"

    def handler(self):
        return "pong"


class DebugEcho(SimqServiceProvider):
    channel = "debug.echo"

    def handler(self, msg):
        return msg

版本记录

0.1.0

  • 版本首发。

Release files for simqd 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simqd 0.1.0
File Size Uploaded
simqd-0.1.0.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simqd 0.1.0
File Interpreter ABI Platform
simqd-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / simqd-0.1.0.tar.gz

Download URL simqd-0.1.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7b59be3a5eac20e6ada098806afbbfb882b029e17e89e719170ee9df2c5631c6
BLAKE2b-256 checksum
How to use checksums
2a7d5a2f72b54a8e1122ec0f6822206d4e6733b9af72bee20c2b3efeb3c213a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / simqd-0.1.0-py3-none-any.whl

Download URL simqd-0.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fce85d979739f9e7989e1ef8f5cccf918a62a93b20b3b0bf5fcc0aae0ec1ab31
BLAKE2b-256 checksum
How to use checksums
5af716abd9ed57f0a45173ff90cafabfe28018406c56af4a7245aba903b3c665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page