本文整理匯總了Python中pyexcel_io.book.BookReader.open_stream方法的典型用法代碼示例。如果您正苦於以下問題:Python BookReader.open_stream方法的具體用法?Python BookReader.open_stream怎麽用?Python BookReader.open_stream使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pyexcel_io.book.BookReader
的用法示例。
在下文中一共展示了BookReader.open_stream方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(
self,
file_stream,
skip_hidden_sheets=True,
detect_merged_cells=False,
skip_hidden_row_and_column=True,
**keywords
):
BookReader.open_stream(self, file_stream, **keywords)
self.skip_hidden_sheets = skip_hidden_sheets
self.skip_hidden_row_and_column = skip_hidden_row_and_column
self.detect_merged_cells = detect_merged_cells
self._load_the_excel_file(file_stream)
示例2: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(self, file_stream, **keywords):
BookReader.open_stream(self, file_stream, **keywords)
self._get_params()
示例3: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(self, file_stream, **keywords):
BookReader.open_stream(self, file_stream, **keywords)
self._native_book = self._load_from_file_alike_object(
self._file_stream)
示例4: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(self, file_stream, **keywords):
"""load ods from file stream"""
BookReader.open_stream(self, file_stream, **keywords)
self._load_from_memory()
示例5: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(self, file_stream, multiple_sheets=False, **keywords):
BookReader.open_stream(self, file_stream, **keywords)
self.__multiple_sheets = multiple_sheets
self._native_book = self._load_from_stream()
示例6: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(self, file_stream, **keywords):
BookReader.open_stream(self, file_stream, **keywords)
示例7: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(self, file_stream, **keywords):
BookReader.open_stream(self, file_stream, **keywords)
self._load_from_memory()
示例8: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(self, file_stream, **keywords):
self.__parse_keywords(**keywords)
BookReader.open_stream(self, file_stream, **keywords)
示例9: test_book_reader_open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def test_book_reader_open_stream():
reader = BookReader()
reader.open_stream("a string")
示例10: open_stream
# 需要導入模塊: from pyexcel_io.book import BookReader [as 別名]
# 或者: from pyexcel_io.book.BookReader import open_stream [as 別名]
def open_stream(self, file_stream, **keywords):
BookReader.open_stream(self, file_stream, **keywords)
self._native_book = self._load_from_stream()