from_stream method

from_stream

Returns FileType for provided document stream

Returns

The file type of provided stream

def from_stream(self, stream):
    ...
Parameter Type Description
stream io.RawIOBase Stream which will be probed

See Also