skbio.io.registry.IORegistry.get_reader

IORegistry.get_reader(format_name, cls)[source]

Locate the reader 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 reader will return an instance of. If cls is None, the reader will return a generator. Default is None.

Returns:

function or None

The reader associated with format_name and cls