使用手册
快速开始
- 生产者
import rabbitplus
producer = rabbitplus.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 rabbitplus
def handle_message(data, **kwargs):
print(kwargs)
consumer = rabbitplus.RabbitConsumer("docker.kancy.top", "root", "root123")
consumer.onListener("pika.test.queue", callback=handle_message)
Metadata
Release files for rabbitplus 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 | Provenance | |
|---|---|---|---|---|
| rabbitplus-0.0.1.tar.gz | 5.5 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rabbitplus-0.0.1-py3.9.egg | Legacy Egg format | - | - | Details |
| rabbitplus-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 16.8 kB
Release files / rabbitplus-0.0.1.tar.gz
| Download URL | rabbitplus-0.0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10b4342a7bcdcb69cb486903efb3055d87ad97fde232898d63286420a4b49ea0
|
|
BLAKE2b-256 checksum How to use checksums |
47313ee9d19db11029268f6a51a0e87efbe483e18c312a0b2667b1566994936c
|
| 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 / rabbitplus-0.0.1-py3.9.egg
| Download URL | rabbitplus-0.0.1-py3.9.egg |
|---|---|
| Size | 7.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
3fa4eefe713065944971553ddfe5d1a63615ac4739dee8a9fbbb81387de2ebf0
|
|
BLAKE2b-256 checksum How to use checksums |
5aabbe7c1aef631b2449de257a8b76b4381e0e99c6942003de1770ca6f6e5199
|
| 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 / rabbitplus-0.0.1-py2.py3-none-any.whl
| Download URL | rabbitplus-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
56c29bd43370d7c15649861d15497b8b0be015a66f3a17b47c4af815c5e52788
|
|
BLAKE2b-256 checksum How to use checksums |
d5277c68ecbb925e22bbd487eae00e2b2c4c696d4e93c381167bc6f316e0b8ff
|
| 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 rabbitplus 0.0.1
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.