Calling Python from Ruby

后端 未结 6 2022
旧巷少年郎
旧巷少年郎 2020-12-24 02:11

I have a compiled Python library and API docs that I would like to use from Ruby.

Is it possible to load a Python library, instantiate a class defined in it and call

6条回答
  •  眼角桃花
    2020-12-24 02:21

    This article gives some techniques for running Ruby code from Python which should also be applicable in the reverse direction (such as XML-RPC or pipes) as well as specific techniques for running Python code from Ruby. In particular rubypython or Ruby/Python look like they may do what you want.

提交回复
热议问题