Skip to content

Instantly share code, notes, and snippets.

@tkw1536
Created October 11, 2018 12:55
Show Gist options
  • Save tkw1536/750bd1feeabb152f1a2de929c979bcdc to your computer and use it in GitHub Desktop.
Save tkw1536/750bd1feeabb152f1a2de929c979bcdc to your computer and use it in GitHub Desktop.
from scscp import SCSCPCLI
from openmath import openmath as om
def main():
# Eval(GAP, 1) TODO: Syntactic sugar
evalSymbol = om.OMSymbol(name='Eval', cd='Systems', cdbase='http://opendreamkit.org')
GAPSymbol = om.OMSymbol(name='GAPEval', cd='Systems', cdbase='http://opendreamkit.org')
query = om.OMApplication(evalSymbol, [GAPSymbol, om.OMInteger(integer=1)])
print(query)
# and make a request
client = SCSCPCLI("localhost", port=26134)
mitmEval = client.heads.mitm_transient.mitmEval
result = mitmEval([query])
print(result)
client.quit()
if __name__ == "__main__":
main()
(env) towiesin@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment