Reference/API#

astropy.io.registry Package#

Unified I/O Registry.

Functions#

register_reader(data_format, data_class, ...)

Register a reader function.

register_writer(data_format, data_class, ...)

Register a table writer function.

register_identifier(data_format, data_class, ...)

Associate an identifier function with a specific data type.

unregister_reader(data_format, data_class)

Unregister a reader function.

unregister_writer(data_format, data_class)

Unregister a writer function.

unregister_identifier(data_format, data_class)

Unregister an identifier function.

get_reader(data_format, data_class)

Get reader for data_format.

get_writer(data_format, data_class)

Get writer for data_format.

get_formats([data_class, readwrite])

Get the list of registered I/O formats as a Table.

read(cls, *args[, format, cache])

Read in data.

write(data, *args[, format])

Write out data.

identify_format(origin, data_class_required, ...)

Loop through identifiers to see which formats match.

delay_doc_updates(cls)

Contextmanager to disable documentation updates when registering reader and writer.

Classes#

UnifiedIORegistry()

Unified I/O Registry.

UnifiedInputRegistry()

Read-only Unified Registry.

UnifiedOutputRegistry()

Write-only Registry.

UnifiedReadWriteMethod([fget, fset, fdel, doc])

Descriptor class for creating read() and write() methods in unified I/O.

UnifiedReadWrite(instance, cls, method_name)

Base class for the worker object used in unified read() or write() methods.

IORegistryError

Custom error for registry clashes.

Class Inheritance Diagram#

Inheritance diagram of astropy.io.registry.core.UnifiedIORegistry, astropy.io.registry.core.UnifiedInputRegistry, astropy.io.registry.core.UnifiedOutputRegistry, astropy.io.registry.interface.UnifiedReadWriteMethod, astropy.io.registry.interface.UnifiedReadWrite, astropy.io.registry.base.IORegistryError