identify_format#
- astropy.io.registry.identify_format(origin, data_class_required, path, fileobj, args, kwargs)#
Loop through identifiers to see which formats match.
- Parameters:
- origin
python:str A string
"reador"write"identifying whether the file is to be opened for reading or writing.- data_class_required
object The specified class for the result of
reador the class that is to be written.- path
python:stror python:path-like object orpython:None The path to the file or None.
- fileobjpython:file-like object or None.
An open file object to read the file’s contents, or
Noneif the file could not be opened.- argspython:sequence
Positional arguments for the
readorwritefunction. Note that these must be provided as sequence.- kwargsdict-like
Keyword arguments for the
readorwritefunction. Note that this parameter must bedict-like.
- origin
- Returns:
- valid_formats
python:list List of matching formats.
- valid_formats