Code Generation for Python
A script that helps generating Python code for use with
Bert's PropHelper is available in $uti.
Examples:
pygen EQMOD.xml
pygen EQMOD_complete.cml
The script determines automatically which version of the code generation will be used. The schema URL is the indicator. An overview of the versions may be found here:
Versionen
The pygen-script starts a Java-Parser that parses the given XML-file of an equipment model. An XSLT-Transformation generates the Python-Code to be used with
Bert's PropHelper .