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

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")
5 def column_iterator(self, row):
6 raise NotImplementedError("iterate each column at a given row")
9class ISheetWriter(object):
10 def write_row(self, data_row):
11 raise NotImplementedError("How does your sheet write a row of data")
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)
20 def close(self):
21 raise NotImplementedError("How would you close your file")
24class NamedContent(object):
25 """
26 Helper class for content that does not have a name
27 """
29 def __init__(self, name, payload):
30 self.name = name
31 self.payload = payload