Source code for cadrumo.application.live.capture_mode
"""Whether a live capture covered one subject or a batch of them.Two CLI capture-result payloads declared this pair independently. It lives in theapplication layer that performs the capture rather than in either payload module,because neither CLI payload module may import the other."""from__future__importannotationsfromenumimportStrEnumfromtypingimportLiteral__all__=["LiveCaptureMode","LiveCaptureModeValue"]
[docs]classLiveCaptureMode(StrEnum):"""How many subjects one live capture run covered."""SINGLE="single""""One named subject, requested explicitly."""BULK="bulk""""Every subject the surface listed, captured in one run."""
LiveCaptureModeValue=Literal[LiveCaptureMode.SINGLE,LiveCaptureMode.BULK]"""The same mode for a strict CLI payload field."""