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

Method from_uri

aura/uri_handlers/base.py:48–56  ·  view source on GitHub ↗
(cls, uri: str)

Source from the content-addressed store, hash-verified

46
47 @classmethod
48 def from_uri(cls, uri: str) -> Optional[URIHandler]:
49 parsed = urllib.parse.urlparse(uri)
50 cls.load_handlers()
51
52 for handler in HANDLERS.values():
53 if handler.is_supported(parsed):
54 return handler(parsed)
55
56 return cls.default(parsed)
57
58 @classmethod
59 def diff_from_uri(cls, uri1: str, uri2: str) -> Tuple[URIHandler, URIHandler]:

Callers

nothing calls this directly

Calls 2

load_handlersMethod · 0.80
is_supportedMethod · 0.45

Tested by

no test coverage detected