FunctionPool¶
- class dsviper.FunctionPool¶
Bases:
objectOne pool of C++ functions: its uuid, name and documentation, and the functions it holds - query() by name, funcs for all of them, check() to raise instead of answering None.
Registration happens on the C++ side, before the pool reaches Python; nothing here adds a function.
A pool exists so that a C++ application embedding Python can offer its own functions to a script running inside it. The wheel alone never produces one, and the Node binding has no counterpart: it is loaded BY a host rather than embedded in one.
Note: Not directly instantiable.
- documentation() str¶
Return the documentation the pool was registered with, empty when none was given.
- funcs FunctionPoolFunctions¶
The functions of the pool, reached by attribute: pool.funcs.<name>. __dir__ lists the names.
- name() str¶
Return the pool name as declared.