CDXML Parser

This is the pydoc code for the cdxml module.

This file provides the necessary functionality to parse a CDXML file with stereochemical hinting

exception molli.ftypes.cdxml.CDXMLSyntaxWarning

Bases: SyntaxWarning

molli.ftypes.cdxml.validate_label(lbl: Element)

This validator is used to filter out all labels that are not intended as the compound labels Valid label:

  • only has one text child element

  • that element font “face” attribute must be set to 1 (CDXML lingo: bold face)

molli.ftypes.cdxml.validate_fragment(frag: Element)

This is validator that removes invalid CDXML fragments right now it is fairly crude (at least one bond must be present)