BlfReader

class BlfReader(file)[source]

Bases: AbstractContextManager[BlfReader]

Binary Log Format (BLF) file reader.

Reads Vector BLF log files and provides an iterator interface to access the contained objects. Handles automatic decompression of log containers.

Parameters:

file (str | bytes | PathLike[Any] | BinaryIO) – Path to BLF file or file-like object

Raises:
  • TypeError – If file parameter is of unsupported type

  • ValueError – If file format is invalid

Variables:

file_statistics – Statistics about the BLF file

read_object()[source]

Retrieve the next parsed object from the BLF file.

This method fetches the next object from the underlying generator that parses the BLF file. If there are no more objects to read, it returns None.

Returns:

The next parsed BLF object or None if the end of the file is reached.

Return type:

ObjectWithHeader[Any] | None