MCPcopy Create free account
hub / github.com/intelowlproject/IntelOwl / python_module

Method python_module

api_app/classes.py:309–321  ·  view source on GitHub ↗

Get the Python module associated with the plugin. Returns: PythonModule: The Python module instance.

(cls)

Source from the content-addressed store, hash-verified

307
308 @classproperty
309 def python_module(cls) -> PythonModule:
310 """
311 Get the Python module associated with the plugin.
312
313 Returns:
314 PythonModule: The Python module instance.
315 """
316 valid_module = cls.__module__.replace(str(cls.python_base_path), "")
317 # remove the starting dot
318 valid_module = valid_module[1:]
319 return PythonModule.objects.get(
320 module=f"{valid_module}.{cls.__name__}", base_path=cls.python_base_path
321 )
322
323 @classmethod
324 def update(cls) -> bool:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected