MCPcopy Create free account
hub / github.com/SySS-Research/hallucinate / __init__

Method __init__

hallucinate/handlers/python.py:12–15  ·  view source on GitHub ↗
(self, script)

Source from the content-addressed store, hash-verified

10class PythonHandler(BaseHandler):
11
12 def __init__(self, script):
13 self.module = self._load(script)
14 self.r = self.module.recv
15 self.s = self.module.send
16
17 # shamelessly stolen from mitmproxy:
18 # Copyright (c) 2013, Aldo Cortesi. All rights reserved.

Callers

nothing calls this directly

Calls 1

_loadMethod · 0.95

Tested by

no test coverage detected