orcus
- orcus.detect_format()
Detects the file format of the stream.
- Parameters:
stream – either bytes, or file object containing a byte stream.
- Return type:
- Returns:
enum value specifying the detected file format.
Example:
import orcus with open("path/to/file", "rb") as f: fmt = orcus.detect_format(f)