PythonCaller

From fmepedia

PythonCaller is a Workbench Transformer.

Executes a Python function and assigns its return value to an attribute. Offers functionality similar to the TCLCaller, but for a different language.

To use this transformer, you must specify the Python module to import, and the name of the python function to execute. The specified function name must include the name of the module. I.e. myModule.exampleFunction

A comma-separated list of arguments for the function may also be provided.

@Python uses Python's sys.path list, as well as the workbench/mapping file's current location to locate modules. If the specified module cannot be found using Python's standard module loading procedure, you may also specify the module location.

Note: Requires Python 2.3 or Python 2.4 to be installed. Python is available from http://python.org

User Comments Add a new comment