Py-OpenDX is a Python binding for the OpenDX API. Currently only the DXLink library is wrapped, though this may be expanded in the future to cover other DX libraries such as CallModule and DXLite.
With the DXLink interface, programs can start up a DX executive and communicate with it via the DXL API. Simple test programs are included in this package which show how to use DXL to perform batch and interactive tasks with DX.
For more information, on IBM DX and OpenDX, refer to:
Refer to docs/INSTALL in the package, but basically:
Feel free to e-mail any comments, questions, problems, or enhancements to my e-mail address below.
from DX import DXEXEC from DX.DXL import * conn = DXLStartDX( DXEXEC + " -execonly", None ) DXLSetSynchronization ( conn, 1 ) DXLSetMessageDebugging( conn, 1 ) exDXLLoadScript( conn, "DisplayTest.net" ) DXLExecuteOnce ( conn ) WaitForDXIdle ( conn ) DXLExitDX( conn )