mcap.stream_reader module

class mcap.stream_reader.StreamReader(input: str | BytesIO | RawIOBase | BufferedReader | IO[bytes], skip_magic: bool = False, emit_chunks: bool = False, validate_crcs: bool = False)[source]

Bases: object

Reads MCAP data sequentially from an input stream.

property records: Iterator[McapRecord]

Returns records encountered in the MCAP in order.