Paper Office
paper-docxAPI referenceoxml.simpletypes

XsdAnyUri

paper-docx 0.2.0 API reference

There's a regex in the spec this is supposed to meet...

but current assessment is that spending cycles on validating wouldn't be worth it for the number of programming errors it would catch.

Functions

convert_from_xml

funcconvert_from_xml(str_value: str) -> str
paramstr_valuestr

Returns

str

convert_to_xml

funcconvert_to_xml(value: str) -> str
paramvaluestr

Returns

str

from_xml

funcfrom_xml(xml_value: str) -> Any
paramxml_valuestr

Returns

typing.Any

to_xml

functo_xml(value: Any) -> str
paramvalueAny

Returns

str

validate

funcvalidate(value: str)
paramvaluestr

validate_int

funcvalidate_int(value: object)
paramvalueobject

validate_int_in_range

funcvalidate_int_in_range(value: int, min_inclusive: int, max_inclusive: int) -> None
paramvalueint
parammin_inclusiveint
parammax_inclusiveint

Returns

None

validate_string

funcvalidate_string(value: Any) -> str
paramvalueAny

Returns

str

On this page