/opt/imh-python/lib/python3.9/site-packages/kombu/utils
NameSizeModeActions
__pycache__/-0755rm
amq_manager.py7160644editdlrm
collections.py9420644editdlrm
compat.py34440644editdlrm
debug.py20490644editdlrm
div.py9410644editdlrm
encoding.py22970644editdlrm
eventio.py101590644editdlrm
functional.py106990644editdlrm
imports.py20890644editdlrm
json.py40880644editdlrm
limits.py25510644editdlrm
objects.py20430644editdlrm
scheduling.py29270644editdlrm
text.py22000644editdlrm
time.py2720644editdlrm
url.py39090644editdlrm
uuid.py3270644editdlrm
__init__.py6980644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/kombu/utils/amq_manager.py (716B)
"""AMQP Management API utilities.""" from __future__ import annotations def get_manager(client, hostname=None, port=None, userid=None, password=None): """Get pyrabbit manager.""" import pyrabbit opt = client.transport_options.get def get(name, val, default): return (val if val is not None else opt('manager_%s' % name) or getattr(client, name, None) or default) host = get('hostname', hostname, 'localhost') port = port if port is not None else opt('manager_port', 15672) userid = get('userid', userid, 'guest') password = get('password', password, 'guest') return pyrabbit.Client(f'{host}:{port}', userid, password)