skbio.io.registry.IORegistry¶
- class skbio.io.registry.IORegistry[源代码]¶
要创建注册表的格式和实现。
内嵌函数
__eq__
(value, /)返回self==值。
__ge__
(value, /)返回self>=值。
__getstate__
\()泡菜的帮手。
__gt__
(value, /)返回self>值。
__hash__
\()返回哈希(self)。
__le__
(value, /)返回self<=value。
__lt__
(value, /)返回self<value。
__ne__
(value, /)回归自我!=值。
__str__
\()返回str(self)。
方法
add_format
(format_object)向注册表添加一种格式。
create_format
(*args, **kwargs)创建新文件格式的简单工厂。
get_reader
(format_name, cls)找到格式和类别的读取器。
get_sniffer
(format_name)找到格式的嗅探器。
get_writer
(format_name, cls)找到格式和类的编写器。
list_read_formats
\(CLS)返回给定的可用读取格式列表 cls 打字。
list_write_formats
\(CLS)返回给定的可用写入格式列表 cls 打字。
monkey_patch
\()猴子补丁 read 和 write 方法复制到已注册的类上。
read
(file[, format, into, verify])读 file 作为 format 变成一个物体。
sniff
(file, **kwargs)检测给定的 file 建议阅读夸克。
write
(obj, format, into, **kwargs)写 obj 作为 format 放到一个文件里。