diff --git a/http/1.4.0/src/app.py b/http/1.4.0/src/app.py index ab37aa24..73a661f8 100755 --- a/http/1.4.0/src/app.py +++ b/http/1.4.0/src/app.py @@ -45,18 +45,6 @@ def curl(self, statement): return item return item - #try: - # if not statement.startswith("curl "): - # statement = "curl %s" % statement - - # data = uncurl.parse(statement) - # request = eval(data) - # if isinstance(request, requests.models.Response): - # return request.text - # else: - # return "Unable to parse the curl parameter. Remember to start with curl " - #except: - # return "An error occurred during curl parsing" def splitheaders(self, headers): parsed_headers = {} diff --git a/shuffle-tools/1.2.0/api.yaml b/shuffle-tools/1.2.0/api.yaml index eb8311f8..96591918 100644 --- a/shuffle-tools/1.2.0/api.yaml +++ b/shuffle-tools/1.2.0/api.yaml @@ -25,6 +25,16 @@ actions: returns: schema: type: string + - name: execute_python + description: Runs python with the data input. Any prints will be returned. + parameters: + - name: code + description: The code to run. Can be a file ID from within Shuffle. + required: true + multiline: true + example: print("hello world") + schema: + type: string - name: check_cache_contains description: Checks Shuffle cache whether a user-provided key contains a value. Returns ALL the values previously appended. parameters: @@ -982,16 +992,7 @@ actions: example: '{"data": "Hello world"}' schema: type: string - - name: execute_python - description: Runs python with the data input. Any prints will be returned. - parameters: - - name: code - description: The code to run. Can be a file ID from within Shuffle. - required: true - multiline: true - example: print("hello world") - schema: - type: string + - name: run_math_operation description: Takes a math input and gives you the result parameters: