473,480 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.

Jun 12 '06 #1
5 2411

di*************@gmail.com wrote:
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.


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

Jun 12 '06 #2
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
Jun 12 '06 #3
I'll check that out, thanks!

vasudevram wrote:
di*************@gmail.com wrote:
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.


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


Jun 12 '06 #4
Wait wait, what do I do exactly? Thanks Michel.

Michel Claveau wrote:
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


Jun 12 '06 #5
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
Jun 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
18790
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
54
6494
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
13
2680
by: Wayne Folta | last post by:
I've been a long-time Perl programmer, though I've not used a boatload of packages nor much of the tacky OO. A couple of years ago, I decided to look into Python and Ruby. Python looked OK, but...
30
3374
by: Christian Seberino | last post by:
How does Ruby compare to Python?? How good is DESIGN of Ruby compared to Python? Python's design is godly. I'm wondering if Ruby's is godly too. I've heard it has solid OOP design but then...
5
1537
by: Lorn | last post by:
I'm undertaking wriitng a bridge application between a remote data server API and multiple utility applications which pull and send data to the API. The reason for a bridge is that the data server...
65
5451
by: Amol Vaidya | last post by:
Hi. I am interested in learning a new programming language, and have been debating whether to learn Ruby or Python. How do these compare and contrast with one another, and what advantages does one...
122
7737
by: seberino | last post by:
I'm interested in knowing which Python web framework is most like Ruby on Rails. I've heard of Subway and Django. Are there other Rails clones in Python land I don't know about? Which one...
12
2925
by: Tony Belding | last post by:
I'm interested in using an off-the-shelf interpreted language as a user-accessible scripting language for a MUCK. I'm just not sure if I can find one that does everything I need. The MUCK must be...
0
1387
by: bruce | last post by:
hey guys... i managed to solve what i was attempting.. my goal was rather simple, to be able to have a python script, call a ruby app, and be able to return a value from the ruby (child) app to...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4768
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.