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

Method projects

python/collaboration/remote.py:318–337  ·  view source on GitHub ↗

Get the list of projects in this project. .. note:: If projects have not been pulled, they will be pulled upon calling this. :return: List of Project objects :raises: RuntimeError if there was an error pulling projects

(self)

Source from the content-addressed store, hash-verified

316
317 @property
318 def projects(self) -> List['project.RemoteProject']:
319 """
320 Get the list of projects in this project.
321
322 .. note:: If projects have not been pulled, they will be pulled upon calling this.
323
324 :return: List of Project objects
325 :raises: RuntimeError if there was an error pulling projects
326 """
327 if not self.has_pulled_projects:
328 self.pull_projects()
329
330 count = ctypes.c_size_t()
331 value = core.BNRemoteGetProjects(self._handle, count)
332 if value is None:
333 raise RuntimeError(util._last_error())
334 result = []
335 for i in range(count.value):
336 result.append(project.RemoteProject(value[i]))
337 return result
338
339 def get_project_by_id(self, id: str) -> Optional['project.RemoteProject']:
340 """

Callers

nothing calls this directly

Calls 3

pull_projectsMethod · 0.95
RemoteProjectMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected