2005/5/9

     
 

ACDK Python

artefaktur

With acdk_python, you can instrument a Python interpreter inside of your acdk application and you are able to have access to all ACDK-Objects in your Python environment.


Beside other interpreter environments ( Lisp,  Perl,  Tcl and  CfgScript) ACDK also supports Python with its Dynamic Method Invokation (DMI) interface.

With the  acdk_python library you can integrate a Python interpreter into ACDK application.

RPythonInterpreter pi = new PythonInterpreter();
pi->parse("print \"Hello World\"\n");
From inside the Python language all ACDK objects can be easely be accessed without generating any futher glue code:


def foo(string1, string2):
  sb = acdk.Object("acdk/lang/StringBuffer", string1)
  sb.append(string2)
  return sb.toString()
  
acdk.peek_static("acdk/lang/System", "out").println(foo("Hello Python", " from ACDK"))

The executable  acdkpython provides a simple command line Python interpreter.


Sub chapter pages:

ACDK Python (acdk_python)With acdk_python, you can instrument a Python interpreter inside of your acdk application and you are able to have access to all ACDK-Objects in your Python environment.

Describe how to compile/install acdk_python

acdk_python contains an interface to an Pyton interperter and the DMI code to script ACDK objects from Python code.

acdkpython is a small wrapper to the commanline Python interpreter bind to ACDK.

This is a generic installation for ACDK packages.

ACDK is available under the LGPL license.



Please refer also to: