开发者社区> 问答> 正文

如何在Python项目中使用ruby库

例如我非常喜欢github/markup这个东西,怎么能在Python中使用它呢

展开
收起
深白色 2014-06-11 09:40:35 6893 0
3 条回答
写回答
取消 提交回答

  • https://github.com/whymirror/unholy


    Compile Ruby to Python bytecode.


    And, in addition, translate that bytecode back to Python source code using Decompyle (included.)


    Requires Ruby 1.9 and Python 2.5.
    2014-06-11 10:03:31
    赞同 展开评论 打赏
  • Re如何在Python项目中使用ruby库
    python应该有相关的库的

    直接用命令行调用ruby程序
    2014-06-11 09:54:58
    赞同 展开评论 打赏
  • Re如何在Python项目中使用ruby库
    可以尝试把gem的调用根据你的需求包装成shell,然后用Python调用你包装好的shell require 'github/markup'
    GitHub::Markup.render('README.markdown', "* One\n* Two")


    2014-06-11 09:44:59
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载