| | |
- builtins.RuntimeError(builtins.Exception)
-
- NativeError
- builtins.object
-
- NativeLibrary
- NativeProcessorRegistry
class NativeLibrary(builtins.object) |
| |
NativeLibrary() -> 'None'
|
| |
Methods defined here:
- __init__(self) -> 'None'
- Initialize self. See help(type(self)) for accurate signature.
- processor_result_set_error(self, result: 'ctypes.c_void_p', message: 'str') -> 'int'
- processor_result_set_output(self, result: 'ctypes.c_void_p', value: 'str') -> 'int'
- ruleset_free(self, handle: 'ctypes.c_void_p') -> 'None'
- ruleset_from_file(self, path: 'str | os.PathLike[str]', processors: 'Mapping[str, Callable[[str], str]] | None' = None) -> 'tuple[ctypes.c_void_p, object | None]'
- ruleset_from_string(self, config: 'str', processors: 'Mapping[str, Callable[[str], str]] | None' = None) -> 'tuple[ctypes.c_void_p, object | None]'
- ruleset_render(self, handle: 'ctypes.c_void_p', rule: 'str') -> 'str'
- ruleset_render_inferred(self, handle: 'ctypes.c_void_p', rule: 'str') -> 'str'
- ruleset_render_inferred_with_context(self, handle: 'ctypes.c_void_p', rule: 'str', context: 'Mapping[str, str]') -> 'str'
- ruleset_render_structured_json(self, handle: 'ctypes.c_void_p', rule: 'str', format_json: 'bool' = True) -> 'str'
- ruleset_render_structured_json_with_context(self, handle: 'ctypes.c_void_p', rule: 'str', context: 'Mapping[str, str]', format_json: 'bool' = True) -> 'str'
- ruleset_render_with_context(self, handle: 'ctypes.c_void_p', rule: 'str', context: 'Mapping[str, str]') -> 'str'
- string_free(self, value: 'ctypes.c_void_p') -> 'None'
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
|
class NativeProcessorRegistry(builtins.object) |
| |
NativeProcessorRegistry(library: 'NativeLibrary', processors: 'Mapping[str, Callable[[str], str]]') -> 'None'
|
| |
Methods defined here:
- __init__(self, library: 'NativeLibrary', processors: 'Mapping[str, Callable[[str], str]]') -> 'None'
- Initialize self. See help(type(self)) for accurate signature.
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
| |