get_writer

astropy.io.registry.get_writer(data_format, data_class)[source]

Get writer for data_format.

Parameters
data_formatstr

The data format identifier. This is the string that is used to specify the data type when reading/writing.

data_classclassobj

The class of the object that can be written.

Returns
writercallable

The registered writer function for this format and class.