Created
October 11, 2018 12:55
-
-
Save tkw1536/750bd1feeabb152f1a2de929c979bcdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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