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

Method groups

python/collaboration/remote.py:428–449  ·  view source on GitHub ↗

Get the list of groups in this project. .. note:: If groups have not been pulled, they will be pulled upon calling this. .. note:: This function is only available to accounts with admin status on the Remote :return: List of Group objects :raises: RuntimeError if there was an error pull

(self)

Source from the content-addressed store, hash-verified

426
427 @property
428 def groups(self) -> List['group.Group']:
429 """
430 Get the list of groups in this project.
431
432 .. note:: If groups have not been pulled, they will be pulled upon calling this.
433
434 .. note:: This function is only available to accounts with admin status on the Remote
435
436 :return: List of Group objects
437 :raises: RuntimeError if there was an error pulling groups
438 """
439 if not self.has_pulled_groups:
440 self.pull_groups()
441
442 count = ctypes.c_size_t()
443 value = core.BNRemoteGetGroups(self._handle, count)
444 if value is None:
445 raise RuntimeError(util._last_error())
446 result = []
447 for i in range(count.value):
448 result.append(group.Group(value[i]))
449 return result
450
451 def get_group_by_id(self, id: int) -> Optional['group.Group']:
452 """

Callers

nothing calls this directly

Calls 2

pull_groupsMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected