MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / proxy

Method proxy

aura/cache.py:385–397  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

383
384 @classmethod
385 def proxy(cls) -> List[str]:
386 if cls.get_location() is None:
387 return cls._get_package_list()
388
389 cache_obj = cls()
390 if cache_obj.is_valid:
391 return loads(cache_obj.cache_file_location.read_text())
392
393 try:
394 return cache_obj.fetch()
395 except Exception as exc:
396 cache_obj.delete()
397 raise exc
398
399 @property
400 def metadata(self) -> dict:

Callers

nothing calls this directly

Calls 4

get_locationMethod · 0.80
_get_package_listMethod · 0.80
fetchMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected