, cls=None)[source]

Return a writer for a format.


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.


function or None

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