使用手册
快速开始
- 生产者
import mqplus
producer = mqplus.RabbitProducer("docker.kancy.top", "root", "root123")
producer.putQueue("test", "pika.test.queue")
# 注册交换机
producer.registerExchange("pika.test.exchange", 'direct')
# 注册队列
producer.registerQueue("pika.test.queue", durable=True)
# 绑定交换机很队列
producer.bind("pika.test.exchange", "pika.test.queue")
- 消费者
import mqplus
def handle_message(data, **kwargs):
print(kwargs)
consumer = mqplus.RabbitConsumer("docker.kancy.top", "root", "root123")
consumer.onListener("pika.test.queue", callback=handle_message)
Metadata
Release files for mqplus 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mqplus-0.0.2.tar.gz | 3.8 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mqplus-0.0.2-py3.9.egg | Legacy Egg format | - | - | Details |
| mqplus-0.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 8.8 kB
Release files / mqplus-0.0.2.tar.gz
| Download URL | mqplus-0.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f2aba27a40dc82c22e066adcf723c7b8d9131002166e22342eb96d15484c41f
|
|
BLAKE2b-256 checksum How to use checksums |
6b1e335ce4450af9064e50570e9ba136125cdc5a31fc71f3ddb856152b3de9e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / mqplus-0.0.2-py3.9.egg
| Download URL | mqplus-0.0.2-py3.9.egg |
|---|---|
| Size | 2.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
7c8adcec463e5842bb714981d4e94ab8bce3f38ccdf029da0c5327195aa34617
|
|
BLAKE2b-256 checksum How to use checksums |
97eccde763679b0761da1bbdc2a8ad84f227c3dc868a1719f24f90b13209d00d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / mqplus-0.0.2-py2.py3-none-any.whl
| Download URL | mqplus-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ea1771cc0181c2bee1299b8128acf378df355562138fc3f9da41724f0dc1ae17
|
|
BLAKE2b-256 checksum How to use checksums |
ee582aa03d311665b80b5a4dd36626b788d51af261d317db5af4b12c37282ebe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for mqplus 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.