SIMQ服务提供者,同时也是SIMQ消息的消费者。
Project description
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
- 版本首发。
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
simqd-0.1.0.tar.gz
(8.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
simqd-0.1.0-py3-none-any.whl
(8.7 kB
view details)
File details
Details for the file simqd-0.1.0.tar.gz.
File metadata
- Download URL: simqd-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b59be3a5eac20e6ada098806afbbfb882b029e17e89e719170ee9df2c5631c6
|
|
| MD5 |
3f8e8823bea4f5f681c263a44096be04
|
|
| BLAKE2b-256 |
2a7d5a2f72b54a8e1122ec0f6822206d4e6733b9af72bee20c2b3efeb3c213a6
|
File details
Details for the file simqd-0.1.0-py3-none-any.whl.
File metadata
- Download URL: simqd-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fce85d979739f9e7989e1ef8f5cccf918a62a93b20b3b0bf5fcc0aae0ec1ab31
|
|
| MD5 |
c3caa88ad123d2c65264bb850296f20e
|
|
| BLAKE2b-256 |
5af716abd9ed57f0a45173ff90cafabfe28018406c56af4a7245aba903b3c665
|