Skip to main content

A free queue service using ActiveMQ

Project description

activeMqServices

To build a free queue service in Python using ActiveMQ and package it as a reusable package.

requirements

For running this, you need to have python3 installed on your system.

Installation


pip install mqueueservice==0.0.1

Example

from queueService.queueService import QueueService

#Create an instance of the QueueService class
service = QueueService(host='localhost', port=61613, username='your_username', password='your_password', destination='/queue/test')

service.connect() #Connect to ActiveMQ

service.send_message('Hello, World Mr Shrijeet!') # Send a message

msg=service.receive_message()  # This will start listening for incoming messages# Receive messages

service.disconnect() # Disconnect from ActiveMQ

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

mqueueservice-0.0.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

mqueueservice-0.0.2-py3-none-any.whl (3.0 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