PyWX

This page contains documentation for the current PyWX and plans for the future.

Features | Configuration | Python API | Known Bugs | To-Do List


Features of PyWX

Configuration

Python access to AOLserver C API

Release 0.6 of PyWX provides a Python API to the AOLserver internal facilities. By this mechanism, almost all of AOLserver's facilities can be used straight from Python without needing to go through a layer of Tcl. This is now the preferred method for interacting with AOLserver.

The wrapping has been given an object-oriented flavor; for example, Ns_Set is wrapped as a Python class called Ns.Set with methods like Get(), Size(), etc. as well as Pythonesque methods like __getitem__, __setitem__, etc.

For information about his API, consult the Ns module documentation.

Python access to AOLserver Tcl API

AOLserver also has many Tcl routines that deal with connection information, forms, databases, and more. One goal of the PyWX project is to make these routines accessible from Python, to ease the transition from Tcl to Python programming for people used to the AOLserver/Tcl environment. Tcl commands can be executed directly using Ns.TclEval() or ns_python.ns_eval_tcl(). An alternative, fancier scheme for treating Tcl objects as Python objects is implemented in ns_python.py in the TclInterpreter, TclFunction, and TclInstance classes. See the documentation strings in that file for details.

Known bugs

To-Do list