Bridge: Ruby to Python communication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • digitalorganics@gmail.com

    #1

    Bridge: Ruby to Python communication

    Hello all. I want a ruby and a python module to be able to communicate
    with each other, access classes, instances and the like. Is there a
    bridge for this? I'm aware of rupy, but the documentation seems rather
    inadequate for the uninitiated. Are there other libraries/bridges or
    maybe a rupy tutorial? Thank you.

  • vasudevram

    #2
    Re: Bridge: Ruby to Python communication


    digitalorganics @gmail.com wrote:[color=blue]
    > Hello all. I want a ruby and a python module to be able to communicate
    > with each other, access classes, instances and the like. Is there a
    > bridge for this? I'm aware of rupy, but the documentation seems rather
    > inadequate for the uninitiated. Are there other libraries/bridges or
    > maybe a rupy tutorial? Thank you.[/color]

    Hi,

    Don't know if there is a specific Ruby/Python bridge, but one way that
    will work for some needs is to use XML-RPC. Its not very difficult to
    understand and to program. XML-RPC is a lightweight distributed
    computing method, much simpler than say, CORBA. Also has less features,
    but may suffice for your needs. It has support for many languages and,
    as long as the needed libraries are there for your language, you can
    use any language for the client and any language for the server. I know
    for sure that XML-RPC supports Python and have used it with Python
    myself. Check out http://xmlrpc.com (and also Google for more resources
    on this topic) to learn more, download source code examples, and to
    check if there is Ruby support for it.

    HTH
    Vasudev Ram
    Independent software consultant
    Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

    PDF conversion tools: http://sourceforge.net/projects/xtopdf

    Comment

    • Michel Claveau

      #3
      Re: Bridge: Ruby to Python communication

      Hi!

      For me, like PHP (message of 11h.35) :

      Only in Windows, I can call Ruby (more exactly Ruby-script) from
      Python.
      I can, also, call, from Python, Ruby-defined-functions, like a method
      of a Python-class.

      It's a combination of Active-scripting & dynamic method add to a class.

      It's run OK with : Ruby-script, Perl-script, PHPscript, VBscript,
      Jscript.

      --
      @-salutations

      Michel Claveau

      --
      @-salutations

      Michel Claveau


      Comment

      • digitalorganics@gmail.com

        #4
        Re: Bridge: Ruby to Python communication

        I'll check that out, thanks!

        vasudevram wrote:[color=blue]
        > digitalorganics @gmail.com wrote:[color=green]
        > > Hello all. I want a ruby and a python module to be able to communicate
        > > with each other, access classes, instances and the like. Is there a
        > > bridge for this? I'm aware of rupy, but the documentation seems rather
        > > inadequate for the uninitiated. Are there other libraries/bridges or
        > > maybe a rupy tutorial? Thank you.[/color]
        >
        > Hi,
        >
        > Don't know if there is a specific Ruby/Python bridge, but one way that
        > will work for some needs is to use XML-RPC. Its not very difficult to
        > understand and to program. XML-RPC is a lightweight distributed
        > computing method, much simpler than say, CORBA. Also has less features,
        > but may suffice for your needs. It has support for many languages and,
        > as long as the needed libraries are there for your language, you can
        > use any language for the client and any language for the server. I know
        > for sure that XML-RPC supports Python and have used it with Python
        > myself. Check out http://xmlrpc.com (and also Google for more resources
        > on this topic) to learn more, download source code examples, and to
        > check if there is Ruby support for it.
        >
        > HTH
        > Vasudev Ram
        > Independent software consultant
        > http://www.geocities.com/vasudevram
        > PDF conversion tools: http://sourceforge.net/projects/xtopdf[/color]

        Comment

        • digitalorganics@gmail.com

          #5
          Re: Bridge: Ruby to Python communication

          Wait wait, what do I do exactly? Thanks Michel.

          Michel Claveau wrote:[color=blue]
          > Hi!
          >
          > For me, like PHP (message of 11h.35) :
          >
          > Only in Windows, I can call Ruby (more exactly Ruby-script) from
          > Python.
          > I can, also, call, from Python, Ruby-defined-functions, like a method
          > of a Python-class.
          >
          > It's a combination of Active-scripting & dynamic method add to a class.
          >
          > It's run OK with : Ruby-script, Perl-script, PHPscript, VBscript,
          > Jscript.
          >
          > --
          > @-salutations
          >
          > Michel Claveau
          >
          > --
          > @-salutations
          >
          > Michel Claveau[/color]

          Comment

          • Michel Claveau

            #6
            Re: Bridge: Ruby to Python communication

            Hi!

            Sorry for my bad english.
            Look here : http://www.mvps.org/scripting/languages/
            Python, with PyWin32, can use ActiveScripting .

            But... only windows...

            --
            @-salutations

            Michel Claveau


            Comment

            Working...