ebonite.runtime.interface package¶
-
exception
ebonite.runtime.interface.ExecutionError[source]¶ Bases:
ExceptionException which is raised when interface method is executed with arguments incompatible to its signature
-
class
ebonite.runtime.interface.Interface[source]¶ Bases:
objectCollection of executable methods with explicitly defined signatures
-
exposed= {}¶
-
executors= {}¶
-
execute(method: str, args: Dict[str, object])[source]¶ Executes given method with given arguments
Parameters: - method – method name to execute
- args – arguments to pass into method
Returns: method result
-
exposed_methods()[source]¶ Lists signatures of methods exposed by interface
Returns: list of signatures
-
get_method(method_name: str) → callable[source]¶ Returns callable exposed method object with given name
Parameters: method_name – method name
-
exposed_method_signature(method_name: str) → pyjackson.core.Signature[source]¶ Gets signature of given method
Parameters: method_name – name of method to get signature for Returns: signature
-
exposed_method_docs(method_name: str) → str[source]¶ Gets docstring for given method
Parameters: method_name – name of the method Returns: docstring
-