Skip to content

Conversation

@weirongw23-msft
Copy link
Member

No description provided.

@weirongw23-msft weirongw23-msft marked this pull request as ready for review October 22, 2025 20:58
Copilot AI review requested due to automatic review settings October 22, 2025 20:58
@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Oct 22, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for automatic decompression of compressed blob content during download operations in the Azure Storage Blob SDK. The feature allows users to control whether compressed content (e.g., gzip) should be automatically decompressed by passing a decompress parameter to the download_blob method.

Key Changes:

  • Added a new optional decompress parameter to the download_blob method in both sync and async blob clients
  • Modified the download implementation to handle the decompress parameter correctly when encryption is used
  • Added comprehensive tests for both sync and async scenarios to verify decompression behavior

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
azure/storage/blob/_blob_client.py Added documentation for the new decompress parameter in the sync blob client
azure/storage/blob/_blob_client.pyi Added type hints for the decompress parameter across all download_blob overloads in sync client
azure/storage/blob/_download.py Modified to preserve the decompress parameter during encryption data requests in sync implementation
azure/storage/blob/aio/_blob_client_async.py Added documentation for the new decompress parameter in the async blob client
azure/storage/blob/aio/_blob_client_async.pyi Added type hints for the decompress parameter across all download_blob overloads in async client
azure/storage/blob/aio/_download_async.py Modified to preserve the decompress parameter during encryption data requests in async implementation
tests/test_common_blob.py Added test case to verify decompression behavior in sync client
tests/test_common_blob_async.py Added test case to verify decompression behavior in async client

@github-actions
Copy link

github-actions bot commented Oct 22, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-storage-blob

@weirongw23-msft
Copy link
Member Author

/azp run python - storage - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants