Skip to main content
Question

Sample FME script that uses PythonCaller transformer


willydevera
Contributor
Forum|alt.badge.img+9

Hi,

I was wondering if you could please provide me with a sample FME script that uses PythonCaller or PythonExecutor transformers.

I’m trying to setup FME Form to ensure PythonCaller is working. As well, would greatly appreciate any instructions you could provide to configure FME and Python and ensure that PythonCaller would work.

Thanks,

 

Wilfredo

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • July 11, 2024

Just putting a python caller after a creator is enough to verify that its working.

Are you wanting to test specific libraries?


willydevera
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • July 15, 2024

Thanks for your response.

I would like to test linear regression with sklearn library. As well, the reason I was requesting for a sample working FME script is to use that as a template, and for me to get an idea as to how the python code fits in the PythonCaller transformer.


hkingsbury
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • July 15, 2024

willydevera
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • July 15, 2024

Perfect! This is exactly what I need. Thanks so much for your help. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings