easy to connect activemq
Project description
easymq
一个基于stomp的简单连接,发送和接收activemq的包
A simple package based on stomp, connection, sending and receiving ActiveMQ
Quick Start
You can use pip install easymq to install easymq
There are two examples, send and receive message from activemq
from easymq.mq import MQ
def receive(headers, body):
print(headers, body)
mq = MQ(
mq_user="root",
password="root1234",
host_and_ports=[
("localhost", 61613),
("localhost", 61613)
],
func=receive,
queue_name="/queue/test_queue",
)
mq.receive()
mq.send("12345")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
File details
Details for the file easymq-2.1.0-py3-none-any.whl.
File metadata
- Download URL: easymq-2.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75d72d93ce0bb19fe09729c35d13d7505e210e3c666043fb7108304bb72bb6c2
|
|
| MD5 |
fc70dbf43f1c5d1e05f35eebb8ea4977
|
|
| BLAKE2b-256 |
2d6abd6525708105ec2eaa92dd52bff1425d0b2442a1445b5536dc9ad0a16d6f
|