[Pharo-project] Calling Python from Pharo
Hi, Is there any way to make Pharo and Python communicate? Thanks, Alberto
Depends what level.... At a high level you could use OSProcess to invoke the correct Python command line and do it in a different process. Or you could use some socket protocol if you have a python interpreter already running waiting for commands. or a mixture of the two... At a lower level you could look to link Python as a C library. cheers, Mike On Tue, Sep 28, 2010 at 10:56 PM, Alberto Bacchelli <alberto.bacchelli@usi.ch> wrote:
Hi,
 Is there any way to make Pharo and Python communicate?
Thanks, Â Alberto
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
There is a Python bridge plugin. But its not open source. On 29 September 2010 01:30, Michael Roberts <mike@mjr104.co.uk> wrote:
Depends what level.... At a high level you could use OSProcess to invoke the correct Python command line and do it in a different process. Or you could use some socket protocol if you have a python interpreter already running waiting for commands. or a mixture of the two...
At a lower level you could look to link Python as a C library.
cheers, Mike
On Tue, Sep 28, 2010 at 10:56 PM, Alberto Bacchelli <alberto.bacchelli@usi.ch> wrote:
Hi,
 Is there any way to make Pharo and Python communicate?
Thanks, Â Alberto
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.
Or use HTTP (a RESTful webservice with JSON is straightforward to implement on both sides). Adrian On Sep 29, 2010, at 00:43 , Igor Stasenko wrote:
There is a Python bridge plugin. But its not open source.
On 29 September 2010 01:30, Michael Roberts <mike@mjr104.co.uk> wrote:
Depends what level.... At a high level you could use OSProcess to invoke the correct Python command line and do it in a different process. Or you could use some socket protocol if you have a python interpreter already running waiting for commands. or a mixture of the two...
At a lower level you could look to link Python as a C library.
cheers, Mike
On Tue, Sep 28, 2010 at 10:56 PM, Alberto Bacchelli <alberto.bacchelli@usi.ch> wrote:
Hi,
Is there any way to make Pharo and Python communicate?
Thanks, Alberto
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (5)
-
Adrian Lienhard -
Alberto Bacchelli -
Igor Stasenko -
Jimmie Houchin -
Michael Roberts