Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/pyexcel_io/plugin_api/abstract_reader.py : 60%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from .abstract_sheet import ISheet
4class IReader(object):
5 """
6 content_array should be a list of NamedContent
7 where: name is the sheet name,
8 payload is the native sheet.
9 """
11 def read_sheet(self, sheet_index) -> ISheet:
12 raise NotImplementedError("Read the sheet by index")
14 def sheet_names(self):
15 return [content.name for content in self.content_array]
17 def __len__(self):
18 return len(self.content_array)
20 def close(self):
21 raise NotImplementedError("Close the file")