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

集成erlang和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?

我们需要在erlang中调用python函数并在python中调用erlang函数。此时我们正在尝试使用SOAP作为这两种语言之间的中间层,但我们有很多“不兼容”的问题。你能建议进行整合的最佳方法吗?

2 个解决方案

#1


27

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.

正如erlport已经提到的,你可以在Erlang端使用Erlang端口协议和term_to_binary / binary_to_term函数。在Python端有低级端口驱动程序端口,它可以发送和接收来自Erlang的消息和更高级别的协议处理程序协议,当你想从Erlang调用Python函数时简化了这种情况。目前Erlang方面没有任何辅助接口,但未来可能会有一些辅助接口。在examples目录中,您可以找到针对不同情况的一些示例代码。

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

并随时与我联系任何与ErlPort相关的主题。

更多相关文章

  1. Python中int()函数的用法
  2. 使用Python编写简单的端口扫描器的实例分享【转】
  3. Python内置函数之匿名(lambda)函数
  4. python函数的属性
  5. python学习笔记10(函数一): 函数使用、调用、返回值
  6. Linux下共享内存相关函数
  7. Linux回调函数的应用---已经验证
  8. c中变参函数的理解和编写(hello world引发的思考)
  9. 浅谈Oracle函数返回Table集合

随机推荐

  1. 聊聊 MongoDB 使用场景
  2. 服务端开发指南与最佳实战 | 数据存储技
  3. 基于ssm框架实现的视频电影系统
  4. 微服务架构概述
  5. 服务端开发指南与最佳实战 | 数据存储技
  6. JavaScript测试教程-part 2:引入 Enzyme
  7. 单例模式 - 只有一个实例
  8. 手撕JS(可能持续更新···)
  9. JavaScript 测试教程 part 1:用 Jest 进行
  10. SOA 对比微服务架构