ezodf is a Python package to create new or open existing OpenDocument (ODF) files to extract, add, modify or delete document data, forked from dead project https://bitbucket.org/mozman/ezodf
# create a new text document
doc = ezodf.newdoc(doctype='odt', filename='text.odt')
# or open an existing text document
doc = ezodf.opendoc('text.odt')
opendoc doesn't need a doctype because it recoginize it from the filename or the filecontent.
newdoc shouldn't need doctype, too. Because it can recoginize the needed type from the filename suffix.
See this from your docu
opendoc
doesn't need adoctype
because it recoginize it from the filename or the filecontent.newdoc
shouldn't needdoctype
, too. Because it can recoginize the needed type from the filename suffix.doctype
should be optional (per defaultNone
)