2005/5/10

     
 

ACDK Python Readme

artefaktur

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.



Content of this chapter:

   General
     Title
     Version
     Short Description
     Dependencies
     Namespaces
     Authors
     License
   Description
   Notes
   Todo
   Changes



 General

 Title

ACDK Python (acdk_python)

 Version

Distribution version: 4.14.
Package version: 4.14.0.

 Short Description

  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.    

 Dependencies

  acdk_core
acdk_text    

 Namespaces

  acdk::python;    

 Authors

  Roger Rene Kommer (kommer@artefaktur.com).    

 License

       ACDK Free Edition Licens.    

 Description

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.

 Notes

  To compile acdk_python on Windows you 
have to compile Python itself.
The binary distribution of 2.* doesn't work, because there are files missing.


Before compiling acdk_python you probably have to ajust the values for Pythons include directory and library directory/name.


Therefore edit the acdk_python/python_cfg.lsp and remake the make file with:
> make -f acdk_python. makemake
Therefore you have to compiled and installed acdk_lisp.


 Todo

  Many parts are not implemented yet.  

 Changes

  ===========================================================
4.10.0
- nothing important

Please refer also to  ChangeLog.

=========================================================== 4.02.0 - Configuration and documentation fixes.

=========================================================== 4.01.1 - Ajustments to modified metainfo - minor documentation changes.

See also  ChangeLog.


=========================================================== 4.00.1 - Ajustments to Unicode and revised metainfo.

=========================================================== acdk_python 2.00.1 - Ajustments to new DMI.