/python-binding

Python for Corto

Primary LanguageCMIT LicenseMIT

Python Binding for Corto Build Status

Use Corto from Python.

Example:

cortopy.eval(
"""
struct Point3d::
    x, y, z: int64
struct Point4d: Point3d::
    w: int64
"""
)
a = cortopy.declare_child(None, "a", Point4d)
a.w = 11
a.x = 22
a.y = 33
a.z = 44
print("w = {}, x = {}, y = {}, z = {}".format(o.w, o.x, o.y, o.z))