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

1class ISheet(object): 

2 def row_iterator(self): 

3 raise NotImplementedError("iterate each row") 

4 

5 def column_iterator(self, row): 

6 raise NotImplementedError("iterate each column at a given row") 

7 

8 

9class ISheetWriter(object): 

10 def write_row(self, data_row): 

11 raise NotImplementedError("How does your sheet write a row of data") 

12 

13 def write_array(self, table): 

14 """ 

15 For standalone usage, write an array 

16 """ 

17 for row in table: 

18 self.write_row(row) 

19 

20 def close(self): 

21 raise NotImplementedError("How would you close your file") 

22 

23 

24class NamedContent(object): 

25 """ 

26 Helper class for content that does not have a name 

27 """ 

28 

29 def __init__(self, name, payload): 

30 self.name = name 

31 self.payload = payload