Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PikaHandler

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

Установка

python -m pip install pikahandler

Использование

from pikahandler import PikaHandler

server = '192.168.0.73'
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):
    print(body)

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

ph.start()

Metadata

Release files for pikahandler 0.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pikahandler 0.0a1
File Size Uploaded Provenance
pikahandler-0.0a1.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pikahandler 0.0a1
File Interpreter ABI Platform
pikahandler-0.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / pikahandler-0.0a1.tar.gz

Download URL pikahandler-0.0a1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b6118f2b8fe84de306f81f724a54eebcaf2e847022319d645602bdaff61ee541
BLAKE2b-256 checksum
How to use checksums
dd8d3bd173366bd672a94a6a6cdb5a32cbccf857800b763b653233754798a70f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / pikahandler-0.0a1-py3-none-any.whl

Download URL pikahandler-0.0a1-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01acc5d1475dc42ef1acfd703d8fe287d8a1f5db61f7b6f44c3eb1c8e112f432
BLAKE2b-256 checksum
How to use checksums
b2e57f96faf9092ab43d1c0cad2d81beee59ff878c1d84b840a236003c8a87d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Security for pikahandler 0.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page