boltffi_bindgen 0.24.0

Code generation library for BoltFFI - generates Swift, Kotlin, and TypeScript bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import annotations
{% if module.uses_sequence_parameter_annotations() %}

from collections.abc import Sequence
{% endif %}

MODULE_NAME: str
PACKAGE_NAME: str
PACKAGE_VERSION: str | None
{% if !module.functions.is_empty() %}

{% for function in module.functions %}
def {{ function.python_name }}({% for parameter in function.parameters %}{{ parameter.name }}: {{ parameter.type_ref.parameter_annotation() }}{% if !loop.last %}, {% endif %}{% endfor %}) -> {{ function.return_type.return_annotation() }}: ...
{% endfor %}
{% endif %}