SanderMertens / python-binding

Python for Corto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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))
ezoic increase your site revenue

About

Python for Corto

License:MIT License


Languages

Language:C 85.1%Language:Python 14.9%