예제 #1
0
파일: csvw.py 프로젝트: Yuri-x/pyexcel-yuri
 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 = {}
예제 #2
0
파일: xls.py 프로젝트: jayvdb/pyexcel-xls
 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)
예제 #3
0
    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
예제 #4
0
파일: odsw.py 프로젝트: vuna261/vuna
    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
예제 #5
0
파일: xlsxw.py 프로젝트: St4nK/aurorai
    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)
예제 #6
0
 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)
예제 #7
0
 def open(self, file_name, **keywords):
     BookWriter.open(self, file_name, **keywords)
     self.zipfile = zipfile.ZipFile(file_name, 'w')
예제 #8
0
 def open(self, file_name, **keywords):
     BookWriter.open(self, file_name, **keywords)
     self.zipfile = zipfile.ZipFile(file_name, "w", zipfile.ZIP_DEFLATED)
예제 #9
0
 def open(self, file_name, **keywords):
     BookWriter.open(self, file_name, **keywords)
     self._native_book = openpyxl.Workbook(write_only=True)
예제 #10
0
 def open(self, file_name, **keywords):
     BookWriter.open(self, file_name, **keywords)
     self.native_book = openpyxl.Workbook()
예제 #11
0
파일: csvz.py 프로젝트: pyexcel/pyexcel-io
 def open(self, file_name, **keywords):
     BookWriter.open(self, file_name, **keywords)
     self.zipfile = zipfile.ZipFile(file_name, "w", zipfile.ZIP_DEFLATED)