views:

200

answers:

3

What protocol preferred to use for interaction between Python-code and Erlang-code over Internet? ASN.1 would be ideally for me, but its implementation in Python cannot generate encoder/decoder out from notation.

+3  A: 

Did you check Google's protocol buffers? It is very easy to use and there is an Erlang implementation available

Nadia Alramli
Thank you, I'll see it also.
Maxim 'Zert' Treskin
+4  A: 

Well, you could use JSON or BERT.

JSON is easily reable by humans, as it is ASCII only. To send binary data, you need to encode them (e.g. with base64).

Another solution would be using BERT. BERT is based on the "erlang external binary format" for serialization, so the erlang side is pretty simple ;)

ZeissS
Thank you. It seems BERT is what I need!
Maxim 'Zert' Treskin
+4  A: 

Also, you might want to have a look to Apache Thrift, an IDL supporting both Python and Erlang.

Roberto Aloi