unstale

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 init

@unstale/cli 0.3.1 on npm

aiobotocore 327 changes

Breaking changes 4

  • __aenter__ now returns the AioStreamingBody instance rather than the raw aiohttp ClientResponse; use raw_stream for the underlying response.

    3.8.0release notes

  • The awscli packaging extra was removed; install aiobotocore and awscli separately to get compatible versions.

    3.0.0release notes

  • The boto3 packaging extra was removed; install aiobotocore and boto3 separately to get compatible versions.

    3.0.0release notes

  • Creating loose sessions after the client context has exited is no longer possible.

    3.0.0release notes

Deprecations 1

  • The existing extra continues to work but installs the deprecated legacy httpx package and emits a DeprecationWarning when used.

    3.9.0release notes

New APIs and options 7

  • Streaming checksum bodies expose a new checksum property.

    3.9.2release notes

  • A new optional extra installs httpx2, Pydantic's maintained, API-compatible fork, for the httpx backend.

    3.9.0release notes

  • The optional httpx backend can run on trio as well as asyncio, making aiobotocore usable from trio-based projects.

    3.9.0release notes

  • Streaming bodies gain httpx API parity with read, readinto, readlines, async iteration, iter_lines, iter_chunks, tell, and close.

    3.8.0release notes

  • 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.

    3.7.0release notes

  • 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.

    3.7.0release notes

  • AioConfig now supports passing socket_factory as part of connector_args.

    3.1.0release notes

Performance 1

  • SSL certificate loading for the first request per proxy now runs in a thread, preventing the event loop from blocking.

    3.8.0release notes

Behavior and default changes 2

Fixes and other changes 12

  • AioRefreshableCredentials and AioDeferredRefreshableCredentials match botocore's revised refresh logic, publishing staged expiry time together with refreshed credentials.

    3.10.0release notes

  • Python 3.15 is supported and declared in the package classifiers.

    3.10.0release notes

  • Calling close() on an already-closed session no longer raises AssertionError or masks the user's own exception.

    3.9.2release notes

  • The user-agent feature ID is registered when AioS3RegionRedirectorv2 follows a region redirect.

    3.9.2release notes

  • Checksum validation is skipped when no checksum is expected.

    3.9.2release notes

  • The max token is now seeded on the initial request attempt rather than appearing only after a retry.

    3.9.1release notes

  • Session management is now concurrency-safe.

    3.9.1release notes

  • Login credential refreshes call the generated asynchronous-compatible method directly instead of botocore's sync-only compatibility alias.

    3.9.1release notes

  • A per-request read_timeout override is now honored when computing retry timing.

    3.9.1release notes

  • The async retry path now honors botocore’s no-retry signal, avoiding synchronous sleeps on the event loop during backoff.

    3.8.0release notes

  • Fixes a race condition that could cause false InfiniteLoopConfigError under concurrent async usage.

    3.7.0release notes

  • Falls back to synchronous subprocess.run via asyncio.to_thread when the event loop does not implement subprocess transports, notably asyncio.SelectorEventLoop on Windows.

    3.7.0release notes

aiobotocore 21 changes

Behavior and default changes 1

  • The environment variable is turned off by default to match the botocore module.

    2.0.0release notes