Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to integrate Erlang and python

Tags:

python

erlang

What's the best way to integrate Erlang and python?

We need to call python functions in Erlang and call Erlang functions in python. At this moment we are trying to use SOAP as a intermediate layer between these two languages, but we have a lot of "not compatible" troubles. Could you advise the best way to perform integration?

like image 616
OJ287 Avatar asked Oct 21 '10 17:10

OJ287


1 Answers

As already mentioned with erlport you can use Erlang port protocol and term_to_binary/binary_to_term functions on Erlang side. On Python side there are low level port driver Port which can send and receive messages from Erlang and more high level protocol handler Protocol which simplified situation when you want to call a Python function from Erlang. Currently there are no any auxiliary interfaces on Erlang side but it's possible there will be some in the future. In the examples directory you can find some example code for different situations.

And feel free to contact me about any ErlPort related topic.

like image 173
hdima Avatar answered Sep 30 '22 12:09

hdima