Support the binary store API (alpha) from Dapr 1.19
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Start by regenerating the protos with tools/regen_grpcclient.sh (DAPR_BRANCH=release-1.19) and confirm binarystore.proto appears. Then study the existing gRPC methods in dapr/clients/grpc/client.py and dapr/aio/clients/grpc/client.py to see how client-streaming and server-streaming calls are wrapped. Done means set, get and delete *_alpha1 methods exist in both clients, with tests and an examples/ app that uses binarystore.in-memory.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
Dapr 1.19 adds the binary store building block as an alpha API. An app uses it to store, read and delete files as byte streams through a binary store component. The Python SDK has no client API for it yet. The .NET SDK already supports it, so its implementation is a reference for this work.
Runtime API
gRPC, in the Dapr service (binarystore.proto):
SetBinaryFileAlpha1is a client stream. The first message must containinitial_requestwithcomponent_name,file_nameandoverwrite, and it must arrive within 5 seconds. Each later message contains onepayloadchunk (common.v1.StreamPayload). Itsseqstarts at 0 and goes up by 1 for each chunk. Ifoverwriteis false (the default), the call fails when the file exists. Ifoverwriteis true, the call replaces the file.GetBinaryFileAlpha1returns a server stream ofpayloadchunks of up to 32 KiB, withseqfrom 0.DeleteBinaryFileAlpha1is a unary call.
HTTP, on /v1.0-alpha1/binarystore/{name}/{fileName}:
PUTstores the request body and replaces an existing file.POSTstores the request body, and returns 409 if the file exists.GETreturns the file asapplication/octet-stream.DELETEdeletes the file.
Components in 1.19: binarystore.aws.s3, binarystore.azure.blobstorage, binarystore.azure.datalake, binarystore.gcp.bucket, binarystore.oci.objectstorage and binarystore.in-memory.
Reference: the .NET SDK
- dapr/dotnet-sdk#1933 (merged) adds the
Dapr.BinaryStore.*packages.IDaprBinaryStoreClienthas these methods:SetBinaryFileAsync, from a stream or a byte buffer, withoverwriteand a 32 KiB default chunk sizeGetBinaryFileChunksAsync,GetBinaryFileAsync(to a stream) andGetBinaryFileBytesAsyncDeleteBinaryFileAsync
- dapr/dotnet-sdk#1935 (in review) adds an example app.
- dapr/docs#5388 (in review) adds the .NET SDK docs.
Related links: the proposal (dapr/proposals#88), the runtime implementation (dapr/dapr#10367) and the components (dapr/components-contrib#4559 and dapr/components-contrib#4637). dapr/dotnet-sdk#1934 stores workflow data references in the binary store. That is a separate feature (dapr/dapr#8706), and it is not part of this issue.
Scope
- Generate the protos from Dapr 1.19 with
tools/regen_grpcclient.sh(for exampleDAPR_BRANCH=release-1.19). The script takes everyruntime/v1proto, so it picks upbinarystore.proto.mainandrelease-1.19do not have it yet. - Add set, get and delete
*_alpha1methods to the sync client (dapr/clients/grpc/client.py) and the async client (dapr/aio/clients/grpc/client.py). Set takes bytes or a file-like object and anoverwriteflag. Get returns bytes or an iterator of chunks. - Send the upload chunks in order after the initial request, with
seqfrom 0. - Add tests, and an example in
examples/that uses thebinarystore.in-memorycomponent. - Add docs to the Python SDK section of dapr/docs.
The API is alpha, so its names and behavior can change in a later release.
- Linguagem predominante
- Python
- Estrelas
- 274
- Forks
- 160
- Merge médio
- 5d 15h
- PRs com merge (30d)
- 70
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de dapr/python-sdk
-
SDK Alignment of Workflow ExamplesTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertadapr-ext-workflow good first issue kind/enhancement P2
Dificuldade 2/5 1-2 dias Facilidade para iniciantes 72/100
dapr/python-sdk#853 · 4 comentários ·
Mantenedores costumam responder em até 2 dias
-
ci/release-failure release
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 49/100
dapr/python-sdk#1311 ·
Mantenedores costumam responder em até 2 dias
-
[WORKFLOW SDK FEATURE REQUEST] Retry WaitForInstanceCompletion/Start on a server-sent CANCELLEDAbertadapr-ext-workflow kind/enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
dapr/python-sdk#1246 ·
Mantenedores costumam responder em até 2 dias
-
[BUG] subscribe_with_handler stops silently: async task can die or be collected, sync retry path exits, handler errors reconnect the streamTalvez já em andamento @CasperGN assumiu há 26 dias. Abertakind/bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 65/100
dapr/python-sdk#1233 ·
Mantenedores costumam responder em até 2 dias
-
[BUG] Configuration subscription stops permanently after the daprd sidecar restartsTalvez já em andamento @CasperGN assumiu há 23 dias. Abertakind/bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 68/100
dapr/python-sdk#1232 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de dapr/python-sdk
Issues semelhantes
-
[Bug] Unit tests reach real Bedrock call paths without patching the modelTalvez já em andamento @proton0210 assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
aws-samples/sample-aws-genai-db-modernizer#1318 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
pyarrow-25.0.1-cp310-cp310-manylinux_2_28_x86_64.whl: 1 vulnerabilities (highest severity is: 5.3)AbertaMend: dependency security vulnerability
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
capitalone/locopy#394 ·
-
[Bug] Unhandled ValueError terminates watchdog thread when GISRC value contains multiple colonsAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
sdk-typescript: unquoted COPY globs in shell form are silently dropped from the image build contextAbertabug javascript
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
ietf-tools/datatracker#11922 · 1 comentário ·
Mantenedores costumam responder em até 1 dia