Ariles
Loading...
Searching...
No Matches
Classes

Detailed Description

Python serialization.

Outputs a Python script that defines variables containing data exported by ariles. Script includes all necessary imports and is intended to be loaded in other python scripts or interactive sessions using exec(open("output_script.py").read()). Ariles class exported using 'python' visitor is a single python map similar to this: ‘root_element={'vector’: [1, 2, 3], 'vector_of_maps': [{'a': 'a'}], 'scalar': 2}`, i.e.: ariles maps correspond to python dictionaries, arrays to python arrays, matrices and vectors should be represented using numpy types.

Note
This visitor only supports writing (serialization) as reading Python files properly requires a full Python parser which is beyond the scope of this library.

Classes

struct  ariles2::python
 Python visitor. More...