MCPcopy Create free account
hub / github.com/DragonisCV/RAM / __init__

Method __init__

ram/utils/file_client.py:151–156  ·  view source on GitHub ↗
(self, backend='disk', **kwargs)

Source from the content-addressed store, hash-verified

149 }
150
151 def __init__(self, backend='disk', **kwargs):
152 if backend not in self._backends:
153 raise ValueError(f'Backend {backend} is not supported. Currently supported ones'
154 f' are {list(self._backends.keys())}')
155 self.backend = backend
156 self.client = self._backends[backend](**kwargs)
157
158 def get(self, filepath, client_key='default'):
159 # client_key is used only for lmdb, where different fileclients have

Callers

nothing calls this directly

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected