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

Method __init__

aura/uri_handlers/mirror.py:14–23  ·  view source on GitHub ↗
(self, uri: ParseResult)

Source from the content-addressed store, hash-verified

12 scheme = "mirror"
13
14 def __init__(self, uri: ParseResult):
15 self.uri = uri
16 self.opts = {"release": "latest"}
17
18 self.package_name = uri.hostname
19 self.mirror_path = mirror.LocalMirror.get_mirror_path() # Path(uri.path)
20 self.package = PypiPackage.from_cached(self.package_name)
21
22 self.opts.update(parse_qs(uri.query))
23 self.comment = uri.fragment.lstrip("#")
24
25 @property
26 def metadata(self):

Callers

nothing calls this directly

Calls 2

get_mirror_pathMethod · 0.80
from_cachedMethod · 0.80

Tested by

no test coverage detected