Differences between revisions 73 and 75 (spanning 2 versions)
Revision 73 as of 2012-08-16 15:35:31
Size: 7345
Editor: 91
Comment: wiki restore 2013-01-23
Revision 75 as of 2014-03-24 12:33:12
Size: 7124
Editor: LeeKamentsky
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Line 6: Line 5:
Line 8: Line 6:

Line 12: Line 8:

* [[Pyrex|Pyrex]] - write your extension module on Python (!)
 * [[Pyrex]] - write your extension module on Python (!)
Line 18: Line 13:
 * [[elmer|elmer]] - compile and run python code from C, as if it was written in C  * [[elmer]] - compile and run python code from C, as if it was written in C
Line 20: Line 15:
 * [[weave|weave]] - include C code lines in Python program  * [[weave]] - include C code lines in Python program
Line 23: Line 18:
Line 25: Line 19:

Line 29: Line 21:

* [[boost.python|boost.python]] - Expose C++ classes functions and objects to Python, and vice-versa, using just C++ compiler
 * [[boost.python]] - Expose C++ classes functions and objects to Python, and vice-versa, using just C++ compiler
Line 34: Line 25:
 * [[http://developer.qt.nokia.com/wiki/Category:LanguageBindings::PySide::Shiboken|shiboken]] - Binding Generator used to create [[PySide|PySide]] Python bindings for Qt
 * [[SIP|SIP]] - similar to SWIG but specialised for Python and C++. Used to create [[PyQt|PyQt]], the [[Qt|Qt]] API wrapper library
 * [[http://developer.qt.nokia.com/wiki/Category:LanguageBindings::PySide::Shiboken|shiboken]] - Binding Generator used to create PySide Python bindings for Qt
 * [[SIP]] - similar to SWIG but specialised for Python and C++. Used to create PyQt, the [[Qt]] API wrapper library
Line 38: Line 29:
Line 40: Line 30:
Line 42: Line 31:
Line 48: Line 36:
Line 50: Line 37:
Line 53: Line 39:

* [[AppsWithPythonScripting|AppsWithPythonScripting]]
 * AppsWithPythonScripting
Line 58: Line 42:


* [[Python4Delphi|Python4Delphi]] - Python for Delphi is a set of free components that wrap up the Python Dll into Delphi. (http://code.google.com/p/python4delphi/)
 * Python4Delphi - Python for Delphi is a set of free components that wrap up the Python Dll into Delphi. (http://code.google.com/p/python4delphi/)
Line 64: Line 45:


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


* [[CLPython|CLPython]] - Python implemented in Common Lisp
 * [[CLPython]] - Python implemented in Common Lisp
Line 77: Line 53:
Line 79: Line 54:


* [[PyLog|PyLog]] (actually two ''different'' products)
 * PyLog (actually two ''different'' products)
Line 87: Line 60:
Line 90: Line 62:
Line 92: Line 63:


* [[Jython|Jython]] - Python implemented in Java
 * [[JPype|JPype]] - Java for CPython
 * [[Jepp|Jepp]] - Java embedded Python
 * [[Jython]] - Python implemented in Java
 * [[JPype]] - Java for CPython
 * [[Jepp]] - Java embedded Python
Line 98: Line 67:
 * [[http://pypi.python.org/pypi/javabridge|Javabridge]] - a package for running and interacting with the JVM from CPython
Line 101: Line 70:

Line 107: Line 74:
Line 109: Line 75:

Line 113: Line 77:

* [[PyPerl|PyPerl]] http://search.cpan.org/dist/pyperl/
 * PyPerl http://search.cpan.org/dist/pyperl/
Line 116: Line 79:
 * [[PyPerlish|PyPerlish]] - Perl idioms in Python
 * PyPerlish - Perl idioms in Python
Line 121: Line 83:
Line 123: Line 84:

Line 128: Line 87:
Line 130: Line 88:


* RPy http://rpy.sourceforge.net
 * RPy [[http://rpy.sourceforge.net/|http://rpy.sourceforge.net]]
Line 135: Line 91:
Line 137: Line 92:

Line 141: Line 94:
Line 143: Line 95:


* [[elmer|elmer]] - compile and run python code from Tcl, as if it was written in Tcl
 * [[elmer]] - compile and run python code from Tcl, as if it was written in Tcl
Line 149: Line 99:
Line 151: Line 100:

Line 157: Line 104:
Line 159: Line 105:

Line 163: Line 107:
Line 165: Line 108:

Line 168: Line 109:
 * [[PythonVsHaskell|PythonVsHaskell]] has a section "Using both Python & Haskell with ctypes".
 * PythonVsHaskell has a section "Using both Python & Haskell with ctypes".
Line 172: Line 112:


 * [[LotusNotes|LotusNotes]] http://www.dominopower.com/issuesprint/issue200008/command.html
 * [[PostgreSQL|
PostgreSQL]] http://www.linuxgazette.com/issue80/nielsen.html
 * [[RenderMan|RenderMan]] http://www.lysator.liu.se/~ture/terry.html
 * [[CorbaPython|CorbaPython]]: for a generic solution to language integration
 * LotusNotes http://www.dominopower.com/issuesprint/issue200008/command.html
 * [[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
Line 182: Line 119:
Line 184: Line 120:

Line 187: Line 121:
 * Yaml: http://www.yaml.org
 * Yaml: [[http://www.yaml.org/|http://www.yaml.org]]
Line 191: Line 124:

[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++:

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

  • Cython -- Cython -- an improved version of Pyrex

  • CXX - PyCXX - helper lib for writing Python extensions in C++

  • SCXX

  • 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

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

  • weave - include C code lines in Python program

  • ackward exposes parts of Python's standard library as idiomatic C++

C/C++ Binding Generators

Tools to make C/C++ functions/methods accessible from Python by generating binding (Python extension or module) from header files.

  • boost.python - Expose C++ classes functions and objects to Python, and vice-versa, using just C++ compiler

  • PyAutoC - Automatically wrap C functions and structs, using just C compiler.

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

  • PyBindGen Python bindings code generator for pure C or C++ APIs. The generator is written in Python and has low complexity. The generated code is lean, efficient, and highly readable

  • shiboken - Binding Generator used to create PySide Python bindings for Qt

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

  • SWIG - generate extension module from your .h files


Articles


Related

Delphi

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

  • JCC - a C++ code generator for calling Java from C++/Python

  • Javabridge - a package for running and interacting with the JVM from CPython

C#/.NET

  • ActiveState research

  • Python for .NET is a near-seamless integration of the CPython runtime with the .NET Common Language Runtime (CLR).

  • IronPython is an implementation of Python for .net, which allows you to import .net class libraries seamlessly in Python.

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.

PHP

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.

  • Lupa - fast wrapper for LuaJIT2 written in Cython.

  • 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 2020-07-29 18:06:27 by JaraKaca)

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