MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / core_project

Method core_project

python/collaboration/project.py:110–124  ·  view source on GitHub ↗

Get the core :py:class:`binaryninja.Project` object for this Remote Project. .. note:: If the project has not been opened, it will be opened upon calling this. :return: Project instance

(self)

Source from the content-addressed store, hash-verified

108
109 @property
110 def core_project(self) -> 'Project':
111 """
112 Get the core :py:class:`binaryninja.Project` object for this Remote Project.
113
114 .. note:: If the project has not been opened, it will be opened upon calling this.
115
116 :return: Project instance
117 """
118 if not self.open():
119 raise RuntimeError("Failed to open project")
120
121 core_handle = core.BNRemoteProjectGetCoreProject(self._handle)
122 if core_handle is None:
123 raise RuntimeError(util._last_error())
124 return Project(handle=ctypes.cast(core_handle, ctypes.POINTER(core.BNProject)))
125
126 @property
127 def remote(self) -> 'remote.Remote':

Callers

nothing calls this directly

Calls 2

openMethod · 0.95
ProjectClass · 0.70

Tested by

no test coverage detected