Skip to content

[Mirror of #855] Implement standard request compression for generated Python clients - #1004

Closed
stobrien89 wants to merge 10 commits into
developfrom
mirror-pr-855
Closed

stobrien89 wants to merge 10 commits into
developfrom
mirror-pr-855

Conversation

@stobrien89

Copy link
Copy Markdown
Contributor

Issue #, if available: N/A

Description of changes:

Mirrors #855 from a branch in this repo so the aws-sdk-pr-build workflow runs. Not for merging; review and merge #855.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

gouveags and others added 10 commits October 18, 2026 20:30
- Treat AWS_DISABLE_REQUEST_COMPRESSION as case-sensitive true/false.
- Use the same gzip level (6) for buffered and streamed bodies.
- Test that invalid disable values are rejected.
- Add compression config fields only to services with a compressible
  operation, matching the native Python generator.
Develop split the runtime into sync and async code paths and reworked AWS
config resolution. Request compression is re-applied on that structure:

- Compression runs in the shared protocols, so sync clients compress too.
  Sync streams use a seekable sync gzip reader. Async streams use the
  async reader, which now lives in smithy_http.aio.compression and is
  supplied by the async protocol mixin.
- The compression settings and resolvers follow develop's config pattern
  and appear on both AwsConfig and AsyncAwsConfig.
- The compression protocol vectors now pass for the native Python
  generator, so they are no longer expected failures.
Keeps both the host prefix and request compression resolvers in the
resolvers __all__ and the API snapshot.
Python 3.14 adds a compression package to the standard library, which
shadowed the generated package of the same name, so pyright failed on
3.14 and 3.15.
@stobrien89

Copy link
Copy Markdown
Contributor Author

closing since #855 has been merged

@stobrien89 stobrien89 closed this Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants