Differences between revisions 1 and 28 (spanning 27 versions)
Revision 1 as of 2002-07-14 23:51:35
Size: 116
Editor: pD9EB0537
Comment:
Revision 28 as of 2003-06-25 01:54:45
Size: 3343
Editor: ediacara
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
There a various tools which make it easier to brisge the gab beetween Python and C: = C/C++ =
There a various tools which make it easier to bridge the gap between Python and C/C++:
Line 3: Line 4:
 * SWIG
 * boost
 * pyrex
 * [http://www.swig.org/ SWIG] - generate extension module from your .h files
 * ["boost.python"] - write (tiny) C++ class to wrap your classes in an extension module
 * [http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Pyrex] - write your extension module on Python (!)
 * [http://cxx.sourceforge.net/ CXX]
 * [http://starship.python.net/crew/gmcm/scxx.html SCXX]
 * ["weave"] - include C code lines in Python program
 * ["SIP"] - ["Qt"] API wrapper library
 * [http://starship.python.net/crew/theller/ctypes/ ctypes] is a Python module allowing to create and manipulate C data types in Python. These can then be passed to C-functions loaded from dynamic link libraries.
 * [http://elmer.sourceforge.net elmer] - compile and run python code from C, as if it was written in C

[Hint: The idea is to create pages for the stuff, not just link it.]

[wiki:Thinki/UsingPythonWithOtherLanguages Much more extensive page on Thinki]
== Articles ==
 * Embedding Python in Multi-Threaded C/C++ Applications in [http://www.linuxjournal.com/article.php?sid=3641 LinuxJournal]
 * Building Hybrid Systems with Boost.Python in [http://www.cuj.com/documents/s=8188/cuj0307abrahams/ C/C++ User Journal]
-----
[[There are also interesting solutions for co-operation
between Python and such languages as Tcl,
Perl,
Fortran,
Prolog,
and many others.
We'll write more on these subjects, in time.]]

= Fortran =
 * ["F2PY"] - Fortran to Python Interface Generator (http://cens.ioc.ee/projects/f2py2e/)
 * PyFort - The Python-Fortran connection tool (http://pyfortran.sourceforge.net/)

= Prolog =
 * PyLog [http://christophe.delord.free.fr/en/pylog/prolog.html]
 * bedevere [http://bedevere.sourceforge.net/]
 * [http://agave.ahsc.arizona.edu/~schcats/projects/ prolog] a simple interface to [http://www.swi-prolog.org/ SWI-Prolog]

See also [http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=Python+prolog]

= Java =
 * ["Jython"] - Python implemented in Java

= C#/.NET =
[http://www.activestate.com/Corporate/Initiatives/NET/Research.html?_x=1 ActiveState research]

= Perl =
See http://www.faqts.com/knowledge_base/view.phtml/aid/17202/fid/1102
 * PyPerl [http://aspn.activestate.com/ASPN/CodeDoc/pyperl/perlmodule.html]
 * [http://search.cpan.org/search?query=Inline%3A%3APython&mode=all Inline::Python]

= R =
 * RPy [http://rpy.sourceforge.net]
 * RSPython [http://www.omegahat.org/RSPython]

= Objective-C =
 * http://pyobjc.sourceforge.net/

= Tcl =
 * [http://elmer.sourceforge.net elmer] - compile and run python code from Tcl, as if it was written in Tcl
 * [http://mini.net/tcl/1324 Tcl and other languages] - Tcl's equivalent of this page.

= Other (applications) =
 * LotusNotes [http://www.dominopower.com/issuesprint/issue200008/command.html]
 * Eiffel/Haskell [http://epolyglot.sourceforge.net/]
 * ["PostgreSQL"] [http://www.linuxgazette.com/issue80/nielsen.html]
 * RenderMan [http://www.lysator.liu.se/~ture/terry.html]
 * CorbaPython: for a generic solution to language integration
to name a few. There are much [http://www.google.com/search?q=Python+binding&hl=en more...]

= Other (standards and protocols) =
 * XMLRPC and SOAP
 * Yaml: http://www.yaml.org

C/C++

There a various tools which make it easier to bridge the gap between Python and C/C++:

[Hint: The idea is to create pages for the stuff, not just link it.]

[wiki:Thinki/UsingPythonWithOtherLanguages Much more extensive page on Thinki]

Articles


[[There are also interesting solutions for co-operation between Python and such languages as Tcl, Perl, Fortran, Prolog, and many others. We'll write more on these subjects, in time.]]

Fortran

Prolog

See also [http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=Python+prolog]

Java

  • ["Jython"] - Python implemented in Java

C#/.NET

[http://www.activestate.com/Corporate/Initiatives/NET/Research.html?_x=1 ActiveState research]

Perl

See http://www.faqts.com/knowledge_base/view.phtml/aid/17202/fid/1102

R

Objective-C

Tcl

Other (applications)

to name a few. There are much [http://www.google.com/search?q=Python+binding&hl=en more...]

Other (standards and protocols)

IntegratingPythonWithOtherLanguages (last edited 2020-07-29 18:06:27 by JaraKaca)

Unable to edit the page? See the FrontPage for instructions.