Library for easy connection to rabbitmq with pika Library
Project description
EasyPikaIot
Library for easy amqp communication via pika lirmbrary
Installation
Use the package manager pip to install foobar.
pip install easypikaiot
Usage
from pika_obj import PikaMassenger
# creat connection to rabittmq
PMI = PikaMassenger(username='<str>',password='<str>',host='<int:defualt(5672)>',port,exchange_name='<str>',exchange_type='<extype:defualt(direct)>')
# for create consume
PMI.run(queue_name='<str>', routing_keys='<list>' ,callback='<function>')
# for publish message
PMI.send_message(self,routing_key='<str>',data='<str>')
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
easypikaio-0.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for easypikaio-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3cf93e048afa230f4ce38936411a17a530f50af380e02d4805fd98ed372349 |
|
MD5 | bf879271a3cb89a58a02c728ad6f6528 |
|
BLAKE2b-256 | 37b42d6e18fae0c9f3b3c431cf1a943416aa0a286b4b6a715a72a2bda79e0777 |