Skip to main content

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 easypikaio

Usage

from easy_pika.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>')

# function callback
def callback(ch, method, properties, body):...
    PMI.connection._channel.basic_ack(method.delivery_tag)

# 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.5.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file easypikaio-0.0.5.tar.gz.

File metadata

  • Download URL: easypikaio-0.0.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for easypikaio-0.0.5.tar.gz
Algorithm Hash digest
SHA256 8ce4304bf5ccff14f433b21772cc8169712f67797bb07c37be371aa5ffd1af98
MD5 a57d094ff7020ee2c98b5ac35aa14f94
BLAKE2b-256 4c2776fc312bb6434db1267fe92246d216ec61870b899d91f49490a5dd45d630

See more details on using hashes here.

Supported by

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