Example #1
0
 def __init__(self, filename,
              file_content=None,
              load_sheet_with_name=None,
              load_sheet_at_index=None,
              **keywords):
     BookReader.__init__(self, filename,
                         file_content=file_content,
                         load_sheet_with_name=load_sheet_with_name,
                         load_sheet_at_index=load_sheet_at_index,
                         **keywords)
     self.native_book.close()
Example #2
0
 def __init__(self,
              filename,
              file_content=None,
              sheetname=None,
              **keywords):
     BookReader.__init__(self,
                         filename,
                         file_content=file_content,
                         sheetname=sheetname,
                         **keywords)
     self.native_book.release_resources()
Example #3
0
 def __init__(self, filename, file_content=None,
              load_sheet_with_name=None,
              load_sheet_at_index=None, **keywords):
     if filename is None and file_content is None:
         self.keywords = keywords
         self.mysheets = {"csv": []}
     else:
         BookReader.__init__(self, filename, file_content=file_content,
                             load_sheet_with_name=load_sheet_with_name,
                             load_sheet_at_index=load_sheet_at_index,
                             **keywords)
Example #4
0
 def __init__(self,
              filename,
              file_content=None,
              load_sheet_with_name=None,
              load_sheet_at_index=None,
              **keywords):
     if filename is None and file_content is None:
         self.keywords = keywords
         self.mysheets = {"csv": []}
     else:
         BookReader.__init__(self,
                             filename,
                             file_content=file_content,
                             load_sheet_with_name=load_sheet_with_name,
                             load_sheet_at_index=load_sheet_at_index,
                             **keywords)
Example #5
0
 def __init__(self, filename, file_content=None, sheetname=None, **keywords):
     BookReader.__init__(self, filename, file_content=file_content, sheetname=sheetname, **keywords)
     self.native_book.release_resources()
Example #6
0
 def load_from_memory(self, file_name):
     BookReader.load_from_memory(self, file_name)
     return file_name # just pass it
Example #7
0
 def load_from_file(self, file_content):
     BookReader.load_from_file(self, file_content)
     return file_content # just pass it
Example #8
0
 def get_sheet(self, native_sheet):
     BookReader.get_sheet(self, native_sheet)
     return ArrayReader(native_sheet)
Example #9
0
 def sheet_iterator(self):
     BookReader.sheet_iterator(self)
     return [NamedContent(name, self.native_book[name]) for name in self.native_book]