alef 0.30.19

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9

def {{ fn_name }}(native: Any) -> {{ class_name }}:
    """Build the public `{{ class_name }}` dataclass from the native binding object."""
    return {{ class_name }}(
{% for f in fields %}
        {{ f.name }}={{ f.expr }},
{% endfor %}
    )