MCPcopy Create free account
hub / github.com/ActiveState/code / get_output

Function get_output

recipes/Python/576598_Utility_Mill_Test/recipe-576598.py:10–16  ·  view source on GitHub ↗
(name, revision, query)

Source from the content-addressed store, hash-verified

8 return output
9
10def get_output(name, revision, query):
11 string = run_utility('xml', name, revision, query)
12 middle = string.split('<', 1)[1].rsplit('>', 1)[0]
13 dom = xml.dom.minidom.parseString('<' + middle + '>')
14 value = extract_output(dom)
15 dom.unlink()
16 return value
17
18def run_utility(api, name, revision, query):
19 url = 'http://utilitymill.com/api/{0}/utility/{1}/{2}/run?{3}'

Callers 1

test_latestFunction · 0.85

Calls 5

run_utilityFunction · 0.85
extract_outputFunction · 0.85
parseStringMethod · 0.80
unlinkMethod · 0.80
splitMethod · 0.45

Tested by 1

test_latestFunction · 0.68