skbio.io.get_writer

skbio.io.get_writer(format, cls=None)[source]

Return a writer for a format.

Parameters:

format : str

A registered format string.

cls : type, optional

The class which the writer will expect an instance of. If cls is None, the writer will expect a generator that is identical to what is returned by get_reader(<some_format>, None). Default is None.

Returns:

function or None

Returns a writer function if one exists for a given fmt and cls. Otherwise it will return None.