pypi / aio-pika
aio-pika
What changed in aio-pika 9 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
6 breaking1 deprecations2 performance2 behavior and defaults2 tooling21 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initaio-pika 1027 changes
Breaking changes 2
Robust channel operations fail fast after the connection is closed.
Require aiormq consumer publishing error propagation.
Performance 2
The pool lock is not held while waiting for returned items.
Queue iterators are no longer kept in memory.
Behavior and default changes 1
Callbacks are invoked outside the collection lock.
Tooling 1
Package metadata is now included in PyInstaller bundles.
Fixes and other changes 21
Generator-based callback coroutines are now awaited.
Pool items can now be released after shutdown.
Close notifications are completed for channels that were never opened.
Closing a pool wakes pending acquisition attempts.
Cancellation of close notifications is isolated so it does not interfere with other close-notification handling.
Close notifications are completed even when there is no transport.
The RPC factory now applies host_exceptions.
Robust bindings are preserved across routing keys and exchange references.
RPC futures are cleaned up when calls fail or are cancelled.
Robust consumers are restored after broker cancellation.
Automatic channel restoration stops when the connection closes.
Connection options are honored when a URL is supplied.
Fixes reconnect when topology depends on another channel.
Finalizes timed-out iterator cleanup without reviving consumers.
Processing errors are preserved when the delivery channel closes.
Robust types are preserved through await and async with.
Makes AbstractQueueIterator.__aenter__ an async method.
Annotates Exchange.publish() with the values it actually returns.
Declares ready() on AbstractRobustChannel so the method is represented in the channel's types.
The return type now uses TypeVar, improving the typing of connect.
The return type now uses TypeVar, improving the typing of connect_robust.
aio-pika 97 changes
Breaking changes 4
Removed; code using this API must change.
Removed; code using this API must change.
Removed; code using this API must change.
Removed; code using this API must change.
Deprecations 1
Accessing this attribute prints a deprecation warning.
Behavior and default changes 1
Calls to log.exception are split into error and debug log calls, changing the library's log output.
Tooling 1
Built distributions now include the license file.