Differences between revisions 56 and 57
Revision 56 as of 2009-03-13 15:42:15
Size: 5276
Comment:
Revision 57 as of 2009-07-06 16:08:13
Size: 5388
Editor: c-98-216-110-149
Comment: See also: fixed link - repointed Thinki:UsingPythonWithOtherLanguages to the last IA capture of that page, now gone. Perhaps the Thinki InterWiki should be repointed.
Deletions are marked like this. Additions are marked like this.
Line 100: Line 100:
Thinki: Thinki:UsingPythonWithOtherLanguages Thinki: [[http://web.archive.org/web/20071108024137/http://www.thinkware.se/cgi-bin/thinki.cgi/UsingPythonWithOtherLanguages|UsingPythonWithOtherLanguages]]

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

C/C++

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

  • SWIG - generate extension module from your .h files

  • boost.python - write (tiny) C++ class to wrap your classes in an extension module

  • Pyrex - write your extension module on Python (!)

  • CXX

  • SCXX

  • weave - include C code lines in Python program

  • SIP - similar to SWIG but specialised for Python and C++. Used to create PyQt, the Qt API wrapper library

  • 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.

  • elmer - compile and run python code from C, as if it was written in C

  • pwig is a SWIG extension for writting new language modules in Python.

  • PicklingTools is a collection of libraries for exchanging Python Dictionaries between C++ and Python.


Articles


Related

Fortran

Lisp

Prolog

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

Java

  • Jython - Python implemented in Java

  • JPype - Java for CPython

  • Jepp - Java embedded Python

C#/.NET

Perl

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

For converting/porting Perl code to Python the tool 'Bridgekeeper' http://www.crazy-compilers.com/bridgekeeper/ may be handy.

R

Objective-C

Tcl

  • elmer - compile and run python code from Tcl, as if it was written in Tcl

  • TclPython - a Python package for Tcl allows execution of Python (version 2.2 or above) code from a Tcl interpreter.

  • Tcl and other languages - Tcl's equivalent of this page.

Lua

  • LunaticPython - a two-way bridge between Python and Lua.

  • Lux - a mutant Lua emphasizing interoperation with Python, Perl, etc.

OCaml

  • Pycaml - write Python extension modules in OCaml (instead of C), and use Python code and native libraries from OCaml programs.

Eiffel and Haskell

Other (applications)

to name a few. There are much more...

Other (standards and protocols)

See also

Thinki: UsingPythonWithOtherLanguages

IntegratingPythonWithOtherLanguages (last edited 2018-03-07 22:49:23 by WimLavrijsen)

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