Different / better approaches for calling python function from Java
I am quite new to python and am trying to call python's function from java. My primary requirements are these: call should be transparent, in the sense that it should not require modifying .py file simply to enable it to be called from java. I might be given any python file with some functions inside it. I should be able to call any of these functions without requiring to modify .py file. I want to be able to send arguments of both primitive types ( int , String , floats etc.) or non primitive types ( HashMap , ArrayList ) from java to python function and receive back the returned object