https://github.com/cloudevents/spec/blob/master/json-format.md#4-json-batch-format ## Expected Behavior To be able to use the sdk in order to send a batch of `CloudEvent` ## Actual Behavior Only the JSON Format is supported by the sdk ## Specifications - Platform: linux - Python Version: 3.6
Activity
grant commentedon Dec 10, 2021
Here's an updated link:
https://github.com/cloudevents/spec/blob/v1.0.1/json-format.md#4-json-batch-format
Given the number of providers that give batched events, I'm not sure if the SDKs are going to prioritize this format.
EmiRZx commentedon Nov 30, 2026
Is this still wanted for the v2 core? Nothing there handles
application/cloudevents-batch+jsonyet.Proposal:
JSONFormat.write_batch(events) -> bytesandJSONFormat.read_batch(event_factory, data) -> list[BaseCloudEvent], reusing the per-event logicbindings.http.to_batch(events, event_format)andfrom_batch(message, event_format, event_factory=None)The spec defines a batch format only for JSON, so this would stay on
JSONFormatrather than extend theFormatprotocol. I can open a PR if that works.PlugaruT commentedon Dec 1, 2026
@EmiRZx, this is still need for v2. I started to have something for it in #299 but don't have the time to continue the work.
Feel free to contribute!