Skip to main content

Rabbit MQ消息工具(生产者、消费者封装)。

Project description

使用手册

快速开始

  1. 生产者
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")
  1. 消费者
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)

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

rabbitplus-0.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rabbitplus-0.0.1-py3.9.egg (7.4 kB view details)

Uploaded Egg

rabbitplus-0.0.1-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rabbitplus-0.0.1.tar.gz.

File metadata

  • Download URL: rabbitplus-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rabbitplus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 10b4342a7bcdcb69cb486903efb3055d87ad97fde232898d63286420a4b49ea0
MD5 d1751a9650d155cb6c6349c0edc66de6
BLAKE2b-256 47313ee9d19db11029268f6a51a0e87efbe483e18c312a0b2667b1566994936c

See more details on using hashes here.

File details

Details for the file rabbitplus-0.0.1-py3.9.egg.

File metadata

  • Download URL: rabbitplus-0.0.1-py3.9.egg
  • Upload date:
  • Size: 7.4 kB
  • Tags: Egg
  • Uploaded using 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

File hashes

Hashes for rabbitplus-0.0.1-py3.9.egg
Algorithm Hash digest
SHA256 3fa4eefe713065944971553ddfe5d1a63615ac4739dee8a9fbbb81387de2ebf0
MD5 019d10b6c4cb8b785aacfdab4413dce9
BLAKE2b-256 5aabbe7c1aef631b2449de257a8b76b4381e0e99c6942003de1770ca6f6e5199

See more details on using hashes here.

File details

Details for the file rabbitplus-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: rabbitplus-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for rabbitplus-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 56c29bd43370d7c15649861d15497b8b0be015a66f3a17b47c4af815c5e52788
MD5 06795a8c22486120810ba1aea34f04b4
BLAKE2b-256 d5277c68ecbb925e22bbd487eae00e2b2c4c696d4e93c381167bc6f316e0b8ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page