Skip to main content

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


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

easymq-2.1.0-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

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