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
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 Distribution
mqueueservice-0.0.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for mqueueservice-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a070f32e32f0d6ef45c04debb254d1cae104e7ad533a1d8a72409644c4178230 |
|
MD5 | 7be84c2e0853fbf77ea17f2f83090016 |
|
BLAKE2b-256 | 8a26dcf61315940e582a482cd14fcbb38bfeda29e145bff9ca5bc6d46fbb6bfb |