@classmethod
def from_byte_stream(cls, byte_stream, executor, observer=None):
    """Read from a stream of NDJSON bytes.

        Convenience wrapper for `from_lines`.

        :return: An iterator of commands
        :rtype: Iterator[Command]
        """
    return cls.from_lines(cls._bytes_to_lines(byte_stream), executor, observer)
