, cls=None)[source]

Return a reader for a format.


format : str

A registered format string.

cls : type, optional

The class which the reader will return an instance of. If cls is None, the reader will return a generator. Default is None.


function or None

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