Python-SIPA tool to generate Python bindings from C++ code | |
Download |
Python-SIP Ranking & Summary
Advertisement
- License:
- Python License
- Price:
- FREE
- Publisher Name:
- Phil Thompson
- Publisher web site:
- http://wiki.python.org/moin/PyQt
Python-SIP Tags
Python-SIP Description
A tool to generate Python bindings from C++ code One of the features of Python that makes it so powerful is the ability to take existing libraries, written in C or C++, and make them available as Python extension modules. Such extension modules are often called bindings for the library.SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries. Python-SIP was originally developed to create PyQt, the Python bindings for the Qt toolkit, but can be used to create bindings for any C or C++ library.SIP comprises a code generator and a Python module. The code generator processes a set of specification files and generates C or C++ code which is then compiled to create the bindings extension module. The SIP Python module provides support functions to the automatically generated code.The specification files contains a description of the interface of the C or C++ library, i.e. the classes, methods, functions and variables. The format of a specification file is almost identical to a C or C++ header file, so much so that the easiest way of creating a specification file is to edit the corresponding header file.SIP makes it easy to exploit existing C or C++ libraries in a productive interpretive programming environment. SIP also makes it easy to take a Python application (maybe a prototype) and selectively implement parts of the application (maybe for performance reasons) in C or C++. What's New in This Release: · This release adds the ability to wrap classes and functions in different ways and allows an application to choose a particular implementation at runtime. · It adds support for __iter__ and __next__. · Mapped types can now act as a namespace for enums and static methods. · The /Array/ annotation can now be applied to classes and mapped types. · The /NoArgParser/ annotation can now be applied to methods as well as functions.
Python-SIP Related Software