NioFluxMQ
A thread-safe message queue implementation.
Installation
pip install -U nioflux-mq
uv add -U nioflux-mq
Quick Start
-
Start a server
python -m nioflux_mq.server
PS D:\project\NioFluxMQ> py -m nioflux_mq.server [INFO] 2025-09-01 14:14:35,188 nioflux.mq : \ _ __ _____ / | / / ____/ / |/ / /___ / /| / ____/ /_/ |_/_/ =0.0.0.0:26105= NioFluxMQServer started. -
Access MQ via clients
-
Connect to a server
from nioflux_mq.client.client import NioFluxMQClient client = NioFluxMQClient(host='127.0.0.1', port=26105)
-
Register a topic
client.register_topic('topic_0')
-
Register a consumer
client.register_consumer('consumer_0')
-
Sent a message to a topic
client.produce(b'message_0', 'topic_0', ttl=1)
-
Consume a message
message = client.consume('consumer_0', 'topic_0').data client.advance('consumer_0', 'topic_0')
-
Retreat the pointer if you missread some messages
client.retreat('consumer_0', 'topic_0')
-
Metadata
Release files for nioflux-mq 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nioflux_mq-0.0.1.tar.gz | 19.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nioflux_mq-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.4 kB
Release files / nioflux_mq-0.0.1.tar.gz
| Download URL | nioflux_mq-0.0.1.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5dbfe57663fe95244761a7b9c655f9e45b5a4d430483dbcf6a4ebad16025c95
|
|
BLAKE2b-256 checksum How to use checksums |
5772adecd6b97fbfb228b2e5889825fcdc7ee1ea1f993ae0a41e9ad8e83e75be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / nioflux_mq-0.0.1-py3-none-any.whl
| Download URL | nioflux_mq-0.0.1-py3-none-any.whl |
|---|---|
| Size | 22.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0aa6dfc1cc382f365ef32ed57333ce90faefa8f13634598ca9cd56221845bc1c
|
|
BLAKE2b-256 checksum How to use checksums |
a0bfb7cc01d1f0bc813e552e3ed75807775a5b527372b23de24a165fa9226cb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|