MCPcopy
hub / github.com/ihmily/StreamCap / register

Method register

app/core/platforms/platform_handlers/base.py:44–51  ·  view source on GitHub ↗

Register a platform handler class with one or more URL patterns.

(cls: type[T], *patterns: str)

Source from the content-addressed store, hash-verified

42
43 @classmethod
44 def register(cls: type[T], *patterns: str) -> type[T]:
45 """
46 Register a platform handler class with one or more URL patterns.
47 """
48 with cls._lock:
49 for pattern in patterns:
50 cls._registry[pattern] = cls
51 return cls
52
53 @classmethod
54 def get_registered_patterns(cls) -> dict[str, type["PlatformHandler"]]:

Callers 1

handlers.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected