基于redis的消息队列。
Project description
simqcore
基于redis的消息队列。
特性
- 支持消息的队尾插入(FIFO),也可视为普通消息。
- 支持消息的队首插入(FILO),也可视为高优先级消息。
- 支持消息的消费确认。
- 支持超时未确认消息的自动回收。
- 支持消息超时策略的设定。
- 支持多通道。
- 支持未执行消息的取消。
- 支持执行器在获取消息后主动释放消息。
- 消息体使用yaml进行序列化,支持datetime、bytes等类型数值。
安装
pip install simqcore
注意
- 如果使用
db(即redis实例)构建的SimQ实例,可能存在非线程安全问题。 - 在多线程中使用,建议使用
connection_pool来构建SimQ实例。
版本
0.1.0
- 版本首发。
0.2.0
- 添加asyncio支持。
0.2.1
- 添加使用redis connection pool来实例化SimQ对象。
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
simqcore-0.2.1.tar.gz
(12.2 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
simqcore-0.2.1-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file simqcore-0.2.1.tar.gz.
File metadata
- Download URL: simqcore-0.2.1.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f29f50ae411918ca3a6762852c7f13b2d1ce3096974c81d47d0a270ed851aef
|
|
| MD5 |
4507aeca6efeda9903176caead74b8ff
|
|
| BLAKE2b-256 |
bdc52159a0692d6acec30388b9abd0a20835ed3aa8b063f8f1966e6bc3f0fb7a
|
File details
Details for the file simqcore-0.2.1-py3-none-any.whl.
File metadata
- Download URL: simqcore-0.2.1-py3-none-any.whl
- Upload date:
- Size: 15.8 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 |
9ef9f1e956f6c2ced5df368c51fcbdda2d94dfdf1b9b012fcd6ac4a3527a3f73
|
|
| MD5 |
4f12e8e786315e79af8f9dff102c9579
|
|
| BLAKE2b-256 |
6b8bc17deef8b9b13ec69d8fd957bd2f175cea06d18c6b748a3cbf8f44db2d47
|