import com.example.babel.runtime.BabelRuntime;
import com.example.babel.runtime.Function;
import com.example.babel.runtime.Language;
@Language("python")
public interface PythonCode {
@Function
String sayHello(String name);
}
public class Main {
public static void main(String[] args) {
BabelRuntime runtime = BabelRuntime.getInstance();
PythonCode pythonCode = runtime.load(PythonCode.class, "path/to/python/code.py");
String result = pythonCode.sayHello("Babel");
System.out.println(result);
}
}
python.path = path/to/python/files