Get the Remote for a Binary View :param bv: Binary view, potentially with collaboration metadata :return: Remote from one of the connected remotes, or None if not found :raises RuntimeError: If there was an error
(bv: 'binaryninja.BinaryView')
| 54 | |
| 55 | @staticmethod |
| 56 | def get_for_bv(bv: 'binaryninja.BinaryView') -> Optional['Remote']: |
| 57 | """ |
| 58 | Get the Remote for a Binary View |
| 59 | |
| 60 | :param bv: Binary view, potentially with collaboration metadata |
| 61 | :return: Remote from one of the connected remotes, or None if not found |
| 62 | :raises RuntimeError: If there was an error |
| 63 | """ |
| 64 | if not bv.file.has_database: |
| 65 | return None |
| 66 | db = bv.file.database |
| 67 | if db is None: |
| 68 | return None |
| 69 | return databasesync.get_remote_for_local_database(db) |
| 70 | |
| 71 | @property |
| 72 | def has_loaded_metadata(self): |