Paper Office
paper-docxAPI referencepackage

PackageDiagnosis

paper-docx 0.2.0 API reference

Typed triage for a file docx.Document() may refuse or crash on.

readable means "this package can open it as a WordprocessingML document"; kind names what the file actually is; problems say why it is not readable (empty when it is).

PackageDiagnosis(path: str, readable: bool, kind: str, problems: Tuple[str, ...])

Attributes

kind

attributekindstr

path

attributepathstr

problems

attributeproblemsTuple[str, ...]

readable

attributereadablebool

Functions

to_dict

functo_dict() -> dict

Returns

dict

On this page