IORegistry.
sniff
(file, **kwargs)[source]¶Detect the format of a given file and suggest kwargs for reading.
State: Stable as of 0.4.0.
Parameters: |
|
---|---|
Returns: | The name of the format of the file and any suggested kwargs for use with the corresponding reader. |
Return type: | (str, dict) |
Raises: |
|