Hide keyboard shortcuts

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 

2 

3 

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 """ 

10 

11 def read_sheet(self, sheet_index) -> ISheet: 

12 raise NotImplementedError("Read the sheet by index") 

13 

14 def sheet_names(self): 

15 return [content.name for content in self.content_array] 

16 

17 def __len__(self): 

18 return len(self.content_array) 

19 

20 def close(self): 

21 raise NotImplementedError("Close the file")