def open(self, file_name, **keywords): """ Open a file for writing """ BookWriter.open(self, file_name, **keywords) self.file_name = file_name self._native_book = {}
def open(self, file_name, encoding='ascii', style_compression=2, **keywords): BookWriter.open(self, file_name, **keywords) self.work_book = Workbook(style_compression=style_compression, encoding=encoding)
def open(self, file_name, **keywords): """open a file for writing ods""" BookWriter.open(self, file_name, **keywords) self.native_book = ezodf.newdoc(doctype="ods", filename=self.file_alike_object) skip_backup_flag = self.keywords.get('skip_backup', True) if skip_backup_flag: self.native_book.backup = False
def open(self, file_name, **keywords): """open a file for writing ods""" BookWriter.open(self, file_name, **keywords) self._native_book = ezodf.newdoc(doctype="ods", filename=self._file_alike_object) skip_backup_flag = self._keywords.get('skip_backup', True) if skip_backup_flag: self._native_book.backup = False
def open(self, file_name, **keywords): """ Open a file for writing Please note that this writer configure xlsxwriter's BookWriter to use constant_memory by default. :param keywords: **default_date_format** control the date time format. **constant_memory** if true, reduces the memory footprint when writing large files. Other parameters can be found in `xlsxwriter's documentation <http://xlsxwriter.readthedocs.io/workbook.html>`_ """ keywords.setdefault('default_date_format', 'dd/mm/yy') keywords.setdefault('constant_memory', True) BookWriter.open(self, file_name, **keywords) self._native_book = xlsxwriter.Workbook(file_name, keywords)
def open(self, file_name, encoding='ascii', style_compression=2, **keywords): BookWriter.open(self, file_name, **keywords) self.work_book = Workbook(style_compression=style_compression, encoding=encoding)
def open(self, file_name, **keywords): BookWriter.open(self, file_name, **keywords) self.zipfile = zipfile.ZipFile(file_name, 'w')
def open(self, file_name, **keywords): BookWriter.open(self, file_name, **keywords) self.zipfile = zipfile.ZipFile(file_name, "w", zipfile.ZIP_DEFLATED)
def open(self, file_name, **keywords): BookWriter.open(self, file_name, **keywords) self._native_book = openpyxl.Workbook(write_only=True)
def open(self, file_name, **keywords): BookWriter.open(self, file_name, **keywords) self.native_book = openpyxl.Workbook()
def open(self, file_name, **keywords): BookWriter.open(self, file_name, **keywords) self.zipfile = zipfile.ZipFile(file_name, "w", zipfile.ZIP_DEFLATED)