Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mosquito/aio-pika
/ functions
Functions
699 in github.com/mosquito/aio-pika
⨍
Functions
699
◇
Types & classes
101
↳
Endpoints
9
↓ 88 callers
Function
get_random_name
(*args: Any)
tests/__init__.py:6
↓ 85 callers
Method
channel
(self)
aio_pika/channel.py:156
↓ 83 callers
Method
publish
Publish the message to the queue. `aio-pika` uses `publisher confirms`_ extension for message delivery. .. _publisher confirms: https
aio_pika/exchange.py:168
↓ 56 callers
Function
declare_queue
(connection, channel, add_cleanup)
tests/conftest.py:210
↓ 56 callers
Method
get
( self, *, no_ack: bool = False, fail: Literal[True] = ..., timeout: T
aio_pika/queue.py:301
↓ 55 callers
Method
add
( self, callback: Union[ CallbackType[_Sender, _Params, Any], Callback
aio_pika/tools.py:142
↓ 50 callers
Method
declare_queue
:param name: queue name :param durable: Durability (queue survive broker restart) :param exclusive: Makes this queue exclusi
aio_pika/channel.py:352
↓ 47 callers
Method
create_channel
( connection: aio_pika.Connection, )
tests/test_amqp.py:40
↓ 41 callers
Method
close
(self)
tests/test_pool.py:41
↓ 40 callers
Function
declare_exchange
(connection, channel, add_cleanup)
tests/conftest.py:233
↓ 36 callers
Method
ack
Send basic.ack is used for positive acknowledgements .. note:: This method looks like a blocking-method, but actually it just
aio_pika/message.py:441
↓ 35 callers
Method
wait
(self)
aio_pika/tools.py:308
↓ 34 callers
Method
run
()
tests/test_amqp.py:1833
↓ 32 callers
Method
bind
A binding is a relationship between an exchange and a queue. This can be simply read as: the queue is interested in messages from this
aio_pika/queue.py:130
↓ 30 callers
Method
create_task
Creates a new task for the worker
aio_pika/patterns/master.py:202
↓ 28 callers
Method
set_qos
( self, prefetch_count: int = 0, prefetch_size: int = 0, global_: bool = False
aio_pika/channel.py:432
↓ 27 callers
Method
info
(self)
aio_pika/message.py:233
↓ 27 callers
Method
process
Context manager for processing the message >>> async def on_message_received(message: IncomingMessage): ... async with mes
aio_pika/message.py:403
↓ 23 callers
Method
get_underlay_channel
(self)
aio_pika/channel.py:146
↓ 23 callers
Method
iterator
Returns an iterator for async for expression. Full example: .. code-block:: python import aio_pika async d
aio_pika/queue.py:398
↓ 21 callers
Method
consume
Start to consuming the :class:`Queue`. :param timeout: :class:`asyncio.TimeoutError` will be raises when the Future w
aio_pika/queue.py:213
↓ 19 callers
Function
add_cleanup
(event_loop)
tests/conftest.py:59
↓ 19 callers
Function
connect
Make connection to the broker. Example: .. code-block:: python import aio_pika async def main(): connection =
aio_pika/connection.py:305
↓ 18 callers
Method
clear
(self)
aio_pika/tools.py:193
↓ 18 callers
Method
register
Method creates a queue with name which equal of `method_name` argument. Then subscribes this queue. :param method_name: Method name
aio_pika/patterns/rpc.py:460
↓ 17 callers
Method
create_future
(self)
aio_pika/patterns/rpc.py:122
↓ 16 callers
Method
delete
Delete the queue. :param if_unused: Perform delete only when unused :param if_empty: Perform delete only when empty :param ti
aio_pika/queue.py:370
↓ 15 callers
Method
create
Create a container and return its ID.
tests/docker_client.py:231
↓ 14 callers
Method
declare_exchange
Declare an exchange. :param name: string with exchange name or :class:`aio_pika.exchange.Exchange` instance :par
aio_pika/channel.py:264
↓ 12 callers
Method
ready
(self)
aio_pika/connection.py:228
↓ 12 callers
Method
unbind
Remove binding from exchange for this :class:`Queue` instance :param exchange: :class:`aio_pika.exchange.Exchange` instance :param ro
aio_pika/queue.py:175
↓ 11 callers
Method
cancel
This method cancels a consumer. This does not affect already delivered messages, but it does mean the server will not send any more me
aio_pika/queue.py:270
↓ 11 callers
Function
get_logger
(name: str)
aio_pika/log.py:7
↓ 10 callers
Method
close
(self)
aio_pika/pool.py:120
↓ 10 callers
Function
create_connection
(connection_fabric, event_loop, amqp_url)
tests/conftest.py:172
↓ 10 callers
Method
reject
When `requeue=True` the message will be returned to queue. Otherwise, message will be dropped. .. note:: This method look
aio_pika/message.py:472
↓ 9 callers
Method
unregister
Cancels subscription to the method-queue. :param func: Function
aio_pika/patterns/rpc.py:509
↓ 8 callers
Method
__anext__
(self)
aio_pika/queue.py:584
↓ 8 callers
Method
acquire
(self)
aio_pika/pool.py:75
↓ 8 callers
Function
connect_robust
Make connection to the broker. Example: .. code-block:: python import aio_pika async def main(): connection =
aio_pika/robust_connection.py:261
↓ 8 callers
Method
get_exchange
With ``ensure=True``, it's a shortcut for ``.declare_exchange(..., passive=True)``; otherwise, it returns an exchange instanc
aio_pika/channel.py:316
↓ 8 callers
Function
optional
( value: V, func: Union[Callable[[V], T], Type[T]], default: Optional[D] = None, )
aio_pika/message.py:123
↓ 8 callers
Method
transaction
(self)
aio_pika/channel.py:485
↓ 7 callers
Function
ensure_awaitable
( func: Callable[_Params, Union[T, Awaitable[T]]], )
aio_pika/tools.py:349
↓ 6 callers
Method
_request
( self, method: str, path: str, body: dict | None = None, )
tests/docker_client.py:180
↓ 6 callers
Method
get_queue
With ``ensure=True``, it's a shortcut for ``.declare_queue(..., passive=True)``; otherwise, it returns a queue instance witho
aio_pika/channel.py:396
↓ 6 callers
Method
ready
(self)
aio_pika/robust_channel.py:77
↓ 5 callers
Method
connect
(self, timeout=None, **kwargs)
tests/test_connect.py:32
↓ 5 callers
Function
create_connection
(connection_fabric, event_loop, amqp_url)
tests/test_amqp_robust_proxy.py:82
↓ 5 callers
Method
create_worker
Creates a new :class:`Worker` instance.
aio_pika/patterns/master.py:188
↓ 5 callers
Function
getter
()
tests/test_pool.py:21
↓ 5 callers
Method
lock
Set lock flag to `True`
aio_pika/message.py:299
↓ 5 callers
Method
put
(self, item: T)
aio_pika/pool.py:114
↓ 5 callers
Method
remove
Remove a container.
tests/docker_client.py:284
↓ 5 callers
Method
select
( self, timeout: TimeoutType = None, )
aio_pika/transaction.py:36
↓ 4 callers
Method
connect
(self, timeout: TimeoutType = None)
aio_pika/robust_connection.py:198
↓ 4 callers
Function
connection_fabric
()
tests/test_amqp_robust_proxy.py:65
↓ 4 callers
Method
create_channel
(connection: aio_pika.Connection)
tests/test_amqp.py:2021
↓ 4 callers
Method
declare
Declare queue. :param timeout: execution timeout :return: :class:`None`
aio_pika/queue.py:103
↓ 4 callers
Method
discard
( self, callback: Union[ CallbackType[_Sender, _Params, Any], Callback
aio_pika/tools.py:177
↓ 4 callers
Method
get
(self)
docs/source/examples/tornado-pubsub.py:14
↓ 4 callers
Function
get_exchange_name
(value: Any)
aio_pika/abc.py:989
↓ 4 callers
Method
initialize
(self, timeout: TimeoutType = None)
aio_pika/channel.py:201
↓ 4 callers
Function
timeit
(message: str, iterations: int)
docs/source/examples/benchmark.py:12
↓ 3 callers
Method
__aenter__
(self)
aio_pika/pool.py:131
↓ 3 callers
Method
__aexit__
( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
aio_pika/pool.py:134
↓ 3 callers
Method
_format_routing_key
(self, method_name: str)
aio_pika/patterns/rpc.py:130
↓ 3 callers
Method
call
Call remote method and awaiting result. :param method_name: Name of method :param kwargs: Methos kwargs :param expiration:
aio_pika/patterns/rpc.py:409
↓ 3 callers
Method
close
( self, exc: Optional[aiormq.abc.ExceptionType] = asyncio.CancelledError, )
aio_pika/robust_connection.py:244
↓ 3 callers
Method
commit
( self, timeout: TimeoutType = None, )
aio_pika/transaction.py:55
↓ 3 callers
Function
connection_fabric
(request)
tests/conftest.py:167
↓ 3 callers
Method
create
Creates a new instance of :class:`aio_pika.patterns.RPC`. You should use this method instead of :func:`__init__`, because :func:`creat
aio_pika/patterns/rpc.py:230
↓ 3 callers
Function
create_task
( func: Callable[..., Union[Coroutine[Any, Any, T], Awaitable[T]]], *args: Any, loop: Optional[asy
aio_pika/tools.py:54
↓ 3 callers
Method
deserialize_message
( self, message: AbstractIncomingMessage, )
aio_pika/patterns/rpc.py:385
↓ 3 callers
Method
freeze
(self)
aio_pika/tools.py:205
↓ 3 callers
Method
get_instance
(self, url, **kwargs)
tests/test_connection_params.py:60
↓ 3 callers
Method
nack
( self, multiple: bool = False, requeue: bool = True, )
aio_pika/message.py:499
↓ 3 callers
Method
parse
(self, value: Optional[str])
aio_pika/abc.py:771
↓ 3 callers
Method
queue_delete
( self, queue_name: str, timeout: TimeoutType = None, if_unused: bool = False,
aio_pika/channel.py:453
↓ 3 callers
Method
ready
(self)
aio_pika/abc.py:750
↓ 3 callers
Method
remove
( self, callback: Union[ CallbackType[_Sender, _Params, Any], Callback
aio_pika/tools.py:161
↓ 3 callers
Method
reopen
(self)
aio_pika/channel.py:251
↓ 3 callers
Method
restore
(self, channel: Any = None)
aio_pika/robust_channel.py:85
↓ 3 callers
Method
rollback
( self, timeout: TimeoutType = None, )
aio_pika/transaction.py:46
↓ 3 callers
Method
serialize_message
( self, payload: Any, message_type: RPCMessageType, correlation_id: Optional[s
aio_pika/patterns/rpc.py:391
↓ 3 callers
Method
start
Start a container.
tests/docker_client.py:266
↓ 2 callers
Method
_get_connection
(self)
tests/docker_client.py:170
↓ 2 callers
Method
_open
(self)
aio_pika/channel.py:176
↓ 2 callers
Method
call
(self, n: int)
docs/source/rabbitmq-tutorial/examples/6-rpc/rpc_client.py:38
↓ 2 callers
Method
close
( self, exc: Optional[aiormq.abc.ExceptionType] = ConnectionClosed, )
aio_pika/connection.py:68
↓ 2 callers
Method
close
( self, exc: Optional[aiormq.abc.ExceptionType] = None, )
aio_pika/channel.py:126
↓ 2 callers
Method
close
(self)
aio_pika/queue.py:452
↓ 2 callers
Method
closed
(self)
aio_pika/channel.py:143
↓ 2 callers
Method
connect
(self)
tests/docker_client.py:159
↓ 2 callers
Function
connection_fabric
(request)
tests/test_amqps.py:16
↓ 2 callers
Method
consume
( self, callback: Callable[[AbstractIncomingMessage], Awaitable[Any]], no_ack: bool =
aio_pika/robust_queue.py:121
↓ 2 callers
Method
consume
Consume with retry on channel errors. Waits for channel to be ready before consuming, with backoff delay between retries to prevent C
aio_pika/robust_queue.py:192
↓ 2 callers
Method
consume
(self)
aio_pika/queue.py:556
↓ 2 callers
Function
consumer
()
tests/test_amqp_robust_proxy.py:767
↓ 2 callers
Function
create_direct_connection
(request, event_loop, amqp_direct_url)
tests/test_amqp_robust_proxy.py:70
next →
1–100 of 699, ranked by callers