Repository navigation
feat(clients): add Binary Store alpha APIs - #1329
Open
AdepuSriCharan wants to merge 3 commits into
Open
AdepuSriCharan wants to merge 3 commits into
AdepuSriCharan wants to merge 3 commits into
Conversation
Generate protobuf bindings from Dapr runtime v1.19.0-rc.4 (commit 1cdc46c820eede065522f80652c40304d668ea66) using grpcio-tools 1.81.1 and mypy-protobuf 5.0.0. Support immutable runtime refs and reliable generation failures without changing dependency floors. Signed-off-by: Adepu Sri Charan <sricharan.adepu36@gmail.com>
Add synchronous and asynchronous streaming file operations with overwrite, deadlines, authentication, examples and regression coverage. Signed-off-by: Adepu Sri Charan <sricharan.adepu36@gmail.com>
Signed-off-by: Adepu Sri Charan <sricharan.adepu36@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR adds support for the Binary Store alpha API in the Python SDK, allowing developers to upload, download, and delete files through Dapr.
It introduces
set_binary_file_alpha1,get_binary_file_alpha1, anddelete_binary_file_alpha1for both sync and async clients.Uploads support bytes and binary file-like objects, while downloads can be streamed in chunks without loading the entire file into memory. It also handles overwrites, timeouts, authentication, cancellation, and resource cleanup.
I've added unit and integration tests, sync/async examples, documentation, and a dedicated CI job for Dapr 1.19.
The generated gRPC files use Dapr v1.19.0-rc.4. These changes overlap with #1327, and the implementation has also been tested with its newer protocol definitions.
Validation:
A corresponding documentation update is prepared for the Dapr 1.19 docs branch.
Known limitation: An upstream gRPC issue ([grpc/grpc#36066](grpc/grpc#36066)) can occasionally return
INTERNALinstead of the original error during early async upload failures. This is covered by regression tests.Issue reference
Closes #1296
Checklist