skbio.io.registry.
Format
(name, encoding=None, newline=None)[source]¶Defines a format on which readers/writers/sniffer can be registered.
Parameters: |
|
---|
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
__init_subclass__ |
This method is called when a class is subclassed. |
Methods
reader (cls[, monkey_patch, override]) |
Decorate a function to act as the reader for a class in this format. |
sniffer ([override]) |
Decorate a function to act as the sniffer for this format. |
writer (cls[, monkey_patch, override]) |
Decorate a function to act as the writer for a class in this format. |