There is a python module 'python-shell', but it calls the whole python program what if I just want to call a specific function of python from nodejs, is there any way ?
Thank you !
There is a python module 'python-shell', but it calls the whole python program what if I just want to call a specific function of python from nodejs, is there any way ?
Thank you !
Write a short python program calling your function, and run it using the child_process
module as shown in this thread. You'll be able to get standard output back.