APMonitor / apm_python

APMonitor Optimization Suite in Python
http://apmonitor.com/wiki/index.php/Main/PythonApp
Other
104 stars 41 forks source link

Update apm.py #1

Closed seanlane closed 6 years ago

seanlane commented 6 years ago

Add option to not print output from APM cmd. In a perfect world, I think it might be best to adjust the return value of method to return a tuple of (response, output) so the caller can do what they will with the output, or something similar, but that will likely cause a fair amount of refactoring.

This change should keep the default behavior while allowing to opt out from printing input, for example when running APM from Gekko. I haven't spent an inordinate amount of time thinking over this change, so feedback is certainly welcome :)