pypi / aiobotocore
aiobotocore
What changed in aiobotocore 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
4 breaking1 deprecations7 new APIs and options1 performance3 behavior and defaults12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initaiobotocore 327 changes
Breaking changes 4
__aenter__ now returns the AioStreamingBody instance rather than the raw aiohttp ClientResponse; use raw_stream for the underlying response.
The awscli packaging extra was removed; install aiobotocore and awscli separately to get compatible versions.
The boto3 packaging extra was removed; install aiobotocore and boto3 separately to get compatible versions.
Creating loose sessions after the client context has exited is no longer possible.
Deprecations 1
The existing extra continues to work but installs the deprecated legacy httpx package and emits a DeprecationWarning when used.
New APIs and options 7
Streaming checksum bodies expose a new checksum property.
A new optional extra installs httpx2, Pydantic's maintained, API-compatible fork, for the httpx backend.
The optional httpx backend can run on trio as well as asyncio, making aiobotocore usable from trio-based projects.
Streaming bodies gain httpx API parity with read, readinto, readlines, async iteration, iter_lines, iter_chunks, tell, and close.
Adds a method to pre-populate botocore loader caches off the event loop, avoiding blocking file I/O on first client, waiter, or paginator use.
Adds an AioConfig option to pre-populate botocore loader caches off the event loop, avoiding blocking file I/O on first client, waiter, or paginator use.
AioConfig now supports passing socket_factory as part of connector_args.
Performance 1
SSL certificate loading for the first request per proxy now runs in a thread, preventing the event loop from blocking.
Behavior and default changes 2
The botocore dependency specification was relaxed, allowing a broader range of botocore versions.
The wrapt dependency requirement was relaxed.
Fixes and other changes 12
AioRefreshableCredentials and AioDeferredRefreshableCredentials match botocore's revised refresh logic, publishing staged expiry time together with refreshed credentials.
Python 3.15 is supported and declared in the package classifiers.
Calling close() on an already-closed session no longer raises AssertionError or masks the user's own exception.
The user-agent feature ID is registered when AioS3RegionRedirectorv2 follows a region redirect.
Checksum validation is skipped when no checksum is expected.
The max token is now seeded on the initial request attempt rather than appearing only after a retry.
Session management is now concurrency-safe.
Login credential refreshes call the generated asynchronous-compatible method directly instead of botocore's sync-only compatibility alias.
A per-request read_timeout override is now honored when computing retry timing.
The async retry path now honors botocore’s no-retry signal, avoiding synchronous sleeps on the event loop during backoff.
Fixes a race condition that could cause false InfiniteLoopConfigError under concurrent async usage.
Falls back to synchronous subprocess.run via asyncio.to_thread when the event loop does not implement subprocess transports, notably asyncio.SelectorEventLoop on Windows.
aiobotocore 21 changes
Behavior and default changes 1
The environment variable is turned off by default to match the botocore module.