Repository navigation
feat: add zstd request body compression #1218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
f94f98c
feat: add zstd request body compression
apify-factory 08a3d81
feat: accept 'zstd' as a compression algorithm and add the zstd extra
apify-factory 0ec8a9d
docs: document zstd request body compression
apify-factory 53a447b
docs: mention the zstd extra in the README
apify-factory 8edd3bd
test: cover the zstd compressor
apify-factory 01a571f
test: cover the optional-import handling of dotted and extra-less dep…
apify-factory bc033f7
docs: note the zstd build requirement in the Actor server Raises section
apify-factory 214c2fd
docs: document the zstd compression option on the client constructors
apify-factory 212ce68
docs: list zstd among the encodings set_record accepts
apify-factory ced1d0e
build: let ty resolve without backports.zstd on Python 3.14+
apify-factory d68f6a0
feat: tolerate a zstd module that fails to load on Python 3.14+
apify-factory 19d5957
chore: lock backports.zstd for the zstd extra
apify-factory a155d9a
feat: suggest gzip or brotli when the Python build lacks zstd
apify-factory 7f623d3
docs: tighten the zstd availability notes
apify-factory 845edaf
docs: split the zstd install notes and shorten the zstd import comment
apify-factory b114508
fix: keep the client importable when backports.zstd fails to load
apify-factory 345e092
test: cover zstd in the compressor fixture and use the plain backport…
apify-factory 7fe7fe1
docs: show uv add for the zstd extra
apify-factory 7964ffa
fix: keep backports.zstd imports type-checkable and the load error co…
apify-factory db6ed4e
fix: give a broken backports.zstd install its own error without the i…
apify-factory fd96b88
test: add integration tests sending zstd bodies to the live API
claude c237f70
fix: keep the client importable when a `backports.zstd` submodule is …
vdusek 02ae269
test: share the client setup between the `client` and `zstd_client` f…
vdusek 3451f9f
docs: split the message rules in the `try_import` docstring
vdusek 368d497
test: share the zstd module import between unit tests
vdusek e589605
Merge remote-tracking branch 'origin/master' into pr-1218-merge
vdusek a5ff87d
fix: suggest only gzip when zstd is unavailable
vdusek 989c6da
refactor: share the zstd dependency name between the compressor and i…
vdusek 8758fe2
docs: clarify the zstd CPU cost in the compression comparison
vdusek a3876f2
test: cover a missing `backports` package for the zstd extra
vdusek f6164a8
test: reuse the client's zstd module in the test helpers
vdusek 2090411
test: spy on the fixture's own zstd compressor in integration tests
vdusek 04af54b
Merge remote-tracking branch 'origin/master' into pr-1218-review
vdusek 284f697
refactor: name the dependency match in `try_import`
vdusek 57fd4ab
refactor: drop the unused `extra_name=None` support from `try_import`
vdusek 0b33a06
docs: say which errors `try_import` matches by the zstd dependency name
vdusek 888ddf4
docs: show the zstd extra install as a code block in the README
vdusek a587537
docs: link gzip, brotli, and zstd in the HTTP compression concepts page
vdusek aeb176f
test: run the compressed-body integration tests with every compressor
vdusek bb8783f
test: rename the compression fixtures and spy on the compressor instance
vdusek c10c160
fix: keep the client importable when brotli is installed but cannot b…
vdusek f680bfb
test: cover resolving zstd on a Python 3.14+ build without zstd
vdusek 628792f
test: import zstd only in the tests that use it
vdusek 9c3a34c
test: run the compressed-body integration tests with a single client
vdusek 34ca09b
docs: note that standard-library zstd depends on the Python build
vdusek 59bc8b6
docs: shorten the `_max_quality` docstring of `ZstdHttpCompressor`
vdusek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.