MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / StandaloneApplication

Class StandaloneApplication

server.py:12–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class StandaloneApplication(BaseApplication):
13 def __init__(self, application: BaseApplication, option: dict[str, Any] | None = None) -> None:
14 self.options = option or {}
15 self.application = application
16 super().__init__()
17
18 def load_config(self) -> None:
19 config = {key: value for key, value in self.options.items() if key in self.cfg.settings and value is not None}
20 for key, value in config.items():
21 self.cfg.set(key.lower(), value)
22
23 def load(self) -> BaseApplication:
24 return self.application
25
26
27if __name__ == "__main__":

Callers 1

server.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected