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. 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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |