from_stream method

On this page

from_stream

Returns FileType for provided document stream.

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

Returns: FileType: The file type of provided stream.

See Also

On this page