skbio.io.registry.IORegistry.get_writer

IORegistry.get_writer(format_name, cls)[source]

Locate the writer for a format and class.

State: Stable as of 0.4.0.

Parameters:
  • format_name (str) – The name of the format to lookup.
  • cls (type or None) – The class which the writer will expect an instance of. If cls is None, the writer will expect a generator. Default is None.
Returns:

The writer associated with format_name and cls

Return type:

function or None