bluesky_tiled_plugins.exporters#
Module Contents#
Functions#
Export BlueskyRun as newline-delimited sequence of JSON documents. |
API#
- async bluesky_tiled_plugins.exporters.json_seq_exporter(mimetype, adapter, metadata, filter_for_access)#
Export BlueskyRun as newline-delimited sequence of JSON documents.
This callback is to be configured on the server-side to enable exporting BlueskyRun objects in JSON-Seq format.
The resulting stream yields strings, each of which is a JSON document representing one of the standard Bluesky documents: start, descriptor, event, stream_resource, stream_datum, and stop, in the appropriate order.
For example:
{"name": "start", "doc": {...}} {"name": "descriptor", "doc": {...}} {"name": "event", "doc": {...}} {"name": "stream_resource", "doc": {...}} {"name": "stream_datum", "doc": {...}} ... {"name": "stop", "doc": {...}}