
Pythonizer is a tool for creating Python extensions in C++ automatically. It is a Python application that converts C++ classes into Python classes. Pythonizer has a GUI. If you want to transform a C++ class into a Python class, all that you need to do is to define certain parameters like the location of the header file of the C++ class, the location of the library or object file that contains the class or the location of the Python module that will contain the Python class. Pythonizer does the rest of the job. It creates some source code automatically, compiles it and links the objects creating a Python module that can be imported into the interpreter.
Regarding the source code of the extension Pythonizer is not very restrictive. Certain rules need to be followed but experienced C++ developers follow these rules in most cases.
There are very sophisticated open source C++ libraries that have a specialized structure. To handle these cases extra support was added to Pythonizer in order to convert them into Python extensions automatically. Using this feature you can create hundreds of modules with thousands of classes very quickly.
The very first library that is being created in this way is pythonCascade that is a wrapper for the Open CASCADE modeling library. It consists of about four hundred modules with thousands of classes making the rapid development of very complex CAD/CAE/CAM applications using Python possible.
Note: Pythonizer is still under development and not available. It will be published after the completion of pythonCascade and other libraries.
© Copyright Sandor Racz 2003. All Rights Reserved