skbio.io.registry.Format#
- class skbio.io.registry.Format(name, encoding=None, newline=None)[source]#
Defines a format on which readers/writers/sniffer can be registered.
- Parameters:
- namestr
The name of this format.
- encodingstr, optional
What the default encoding of this format is. If set to ‘binary’ then all registered handlers will receive an
io.BufferedReader
orio.BufferedWriter
instead of anio.TextIOBase
. The user will also be unable to override the encoding in that case.- newlinestr, optional
What the default newline handling of this format is. Default is to use universal newline handling.
Attributes
is_binary_format
Return True if this is a binary format.
monkey_patched_readers
Set of classes bound to readers to monkey patch.
monkey_patched_writers
Set of classes bound to writers to monkey patch.
name
The name of this format.
readers
Dictionary that maps classes to their readers for this format.
sniffer_function
The sniffer function associated with this format.
writers
Dictionary that maps classes to their writers for this format.
Built-ins
__eq__
(value, /)Return self==value.
__ge__
(value, /)Return self>=value.
__getstate__
(/)Helper for pickle.
__gt__
(value, /)Return self>value.
__hash__
(/)Return hash(self).
__le__
(value, /)Return self<=value.
__lt__
(value, /)Return self<value.
__ne__
(value, /)Return self!=value.
__str__
(/)Return str(self).
Methods