Registry / http-networking / pyrabbit

pyrabbit

JSON →
library1.1.0pypypi✓ verified 87d ago

A Pythonic interface to the RabbitMQ Management HTTP API. Version 1.1.0, low release cadence (last release 2013).

pip install pyrabbit
INSTALL
IMPORT
SIG · PYRABBIT
P
pyrabbit
http-networkingpythonv1.1.0
Install
2.6s avg
Import
396ms
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.410s · 20.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.6s · import 0.382s · 21MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
from pyrabbit.api import Client
from pyrabbit import Client
Client is in the api module, not top-level.

Connect to RabbitMQ Management API and check if server is alive.

from pyrabbit.api import Client client = Client('http://localhost:15672', 'guest', 'guest') alive = client.is_alive() print(alive)
Debug
Known issues
deprecatedpyrabbit is no longer actively maintained. Last release in 2013. Consider using aio-pika or pika with HTTP client for management API.
fix
Switch to a library with active maintenance and async support.
affects: >=1.0.0
gotchaClient object is not instantiated correctly: use pyrabbit.api.Client, not pyrabbit.Client.
fix
from pyrabbit.api import Client
affects: >=1.0.0
gotchaDefault port for RabbitMQ Management API is 15672, not 5672 (AMQP port).
fix
Use http://host:15672 as the base URL.
affects: >=1.0.0
Errors
Common errors & fixes
ImportError: cannot import name 'Client' from 'pyrabbit'
Client is in the api submodule, not in __init__.py.
fix
Use 'from pyrabbit.api import Client' instead of 'from pyrabbit import Client'.
pyrabbit.api.Client object has no attribute 'is_alive'
Method name might be incorrect in older versions or typo.
fix
Check available methods: get_nodes(), get_queues(), etc. Use client.is_alive() only if available; otherwise use client.aliveness_test('/').
requests.exceptions.ConnectionError: HTTPConnectionPool: Failed to establish a new connection: [Errno 61] Connection refused
Wrong port (using 5672 instead of 15672) or RabbitMQ Management plugin not enabled.
fix
Enable management plugin: rabbitmq-plugins enable rabbitmq_management. Use port 15672.
Upgrade
Version history
1.1.0latest on PyPI · released Aug 28, 2014
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
pyrabbit — pip install pyrabbit · libregistry