MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / url2local

Method url2local

aura/mirror.py:45–50  ·  view source on GitHub ↗
(self, url: typing.Union[ParseResult, str])

Source from the content-addressed store, hash-verified

43 return json.loads(target.read_text())
44
45 def url2local(self, url: typing.Union[ParseResult, str]) -> Path:
46 if not isinstance(url, ParseResult):
47 url = urlparse(url)
48
49 pth = url.path.lstrip("/")
50 return self.get_mirror_path() / pth

Callers 2

test_local_mirrorFunction · 0.95
test_package_retrievalFunction · 0.45

Calls 1

get_mirror_pathMethod · 0.95

Tested by 2

test_local_mirrorFunction · 0.76
test_package_retrievalFunction · 0.36