MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / pipe

Method pipe

Algorithmia/algorithm.py:187–195  ·  view source on GitHub ↗
(self, input1)

Source from the content-addressed store, hash-verified

185
186 # Pipe an input into this algorithm
187 def pipe(self, input1):
188
189 if self.output_type == OutputType.raw:
190 return self._postRawOutput(input1)
191 elif self.output_type == OutputType.void:
192 return self._postVoidOutput(input1)
193 else:
194 return AlgoResponse.create_algo_response(
195 self.client.postJsonHelper(self.url, input1, **self.query_parameters))
196
197 def _postRawOutput(self, input1):
198 # Don't parse response as json

Callers 15

runalgoMethod · 0.80
test_call_customCertMethod · 0.80
test_normal_callMethod · 0.80
test_async_callMethod · 0.80
test_raw_callMethod · 0.80
test_dict_callMethod · 0.80
test_text_unicodeMethod · 0.80
test_call_customCertMethod · 0.80
test_call_binaryMethod · 0.80

Calls 4

_postRawOutputMethod · 0.95
_postVoidOutputMethod · 0.95
create_algo_responseMethod · 0.80
postJsonHelperMethod · 0.80

Tested by 15

test_call_customCertMethod · 0.64
test_normal_callMethod · 0.64
test_async_callMethod · 0.64
test_raw_callMethod · 0.64
test_dict_callMethod · 0.64
test_text_unicodeMethod · 0.64
test_call_customCertMethod · 0.64
test_call_binaryMethod · 0.64
test_async_callMethod · 0.64