7.1.2.27. pycropml.render_python module¶
Add License, Header.
Use pkglts
Problems: - name of a model unit?
-
class
pycropml.render_python.
Model2Package
(models, dir=None, pkg_name=None)[source]¶ Bases:
object
TODO
-
DATATYPE
= {'BOOLEAN': <class 'bool'>, 'CHARLIST': <class 'list'>, 'DATE': <class 'str'>, 'DATELIST': <class 'list'>, 'DOUBLE': <class 'float'>, 'DOUBLEARRAY': <built-in function array>, 'DOUBLELIST': <class 'list'>, 'FLOAT': <class 'float'>, 'INT': <class 'int'>, 'INTLIST': <class 'list'>, 'STRING': <class 'str'>, 'STRINGLIST': <class 'list'>}¶
-
generate_package
()[source]¶ Generate a Python package equivalent to the xml definition.
Args: - models : a list of model - dir: the directory where the code is generated.
Returns: - None or status
-
generate_wralea
()[source]¶ Generate wralea factories from the meta-information of the the model units.
-
num
= 0¶
-