orcus.ods
- orcus.ods.read()
Read an Open Document Spreadsheet file from a specified file path and create a
orcus.Documentinstance object.- Parameters:
stream – file object containing byte streams.
recalc (bool) – optional parameter specifying whether or not to recalculate the formula cells on load. Defaults to
False.error_policy (str) – optional parameter indicating what to do when encountering formula cells with invalid formula expressions. The value must be either
failorskip. Defaults tofail.
- Return type:
- Returns:
document instance object that stores the content of the file.
Example:
from orcus import ods with open("path/to/file.ods", "rb") as f: doc = ods.read(f, recalc=True, error_policy="fail")