Skip to main content


Project description


Класс-хендлер для удобной работы с обработкой сообщений из RabbitMQ


python -m pip install pikahandler


from pikahandler import PikaHandler

server = ''
port = 8472
host = "/"
user = "eugene"
password = "spell-thickness-macarena-belie-gawk-fiske-puffy"

# Без авторизации
ph = PikaHandler(server, port, host)

# С авторизацией
ph = PikaHandler(server, port, host, user, password)

# Через connection
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(server, port, host))
ph = PikaHandler(connection=connection)

@ph.handler("main", lambda r: r["body"] == "HelloWorld")
def helloworld(ch, method, poperties, body):

@ph.handler("main", lambda r: r["body"] == "HelloPython")
def hellopython(ch, method, poperties, body):


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

pikahandler-0.0a1.tar.gz (3.5 kB view hashes)

Uploaded source

Built Distribution

pikahandler-0.0a1-py3-none-any.whl (9.2 kB view hashes)

Uploaded py3

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