MCPcopy Create free account
hub / github.com/ContinuumIO/tranquilizer / ScriptHandler

Class ScriptHandler

tranquilizer/handler.py:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34class ScriptHandler(BaseHandler):
35 def __init__(self, fn):
36 self.fn = fn
37
38 def parse(self):
39 with open(self.fn, 'r') as f:
40 source = f.read()
41
42 self.nodes = ast.parse(source, self.fn)
43 self.module = run_path(self.fn)
44
45
46class NotebookHandler(BaseHandler):

Callers 12

tranquilized_funcsFunction · 0.90
published_funcsFunction · 0.90
error_funcsFunction · 0.90
protected_funcsFunction · 0.90
test_script_handlerFunction · 0.90
test_script_parserFunction · 0.90
test_tranquilized_scriptFunction · 0.90
test_published_scriptFunction · 0.90
tranquilized_funcsFunction · 0.90
mainFunction · 0.85

Calls

no outgoing calls

Tested by 11

tranquilized_funcsFunction · 0.72
published_funcsFunction · 0.72
error_funcsFunction · 0.72
protected_funcsFunction · 0.72
test_script_handlerFunction · 0.72
test_script_parserFunction · 0.72
test_tranquilized_scriptFunction · 0.72
test_published_scriptFunction · 0.72
tranquilized_funcsFunction · 0.72