Reputation: 330
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.
Upvotes: 1
Views: 952
Reputation: 30985
Also, you might want to have a look to Apache Thrift, an IDL supporting both Python and Erlang.
Upvotes: 3
Reputation: 12135
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 ;)
Upvotes: 4
Reputation: 114943
Did you check Google's protocol buffers? It is very easy to use and there is an Erlang implementation available
Upvotes: 4