Skip to main content
Solved

External Python script

  • January 28, 2020
  • 1 reply
  • 153 views

Hi there,

 

Need a suggestion from FME's experts. I have FME transformation that calculates two fields based on the data coming from different sources. Now, I want to use the calculated field along with some other fields from the data and perform normalization on it. I have already written a script in Python (separately) which performs normalization. The Python scripts contains while loop and comparison operators. Is there any way of calling the external Python script from FME? What do you suggest

Best answer by warrendev

You can use the python caller transformer if it's during a translation. There is also python startup and shutdown scripts you can run as well. Here is some helpful information.

 

FME and Python

https://knowledge.safe.com/articles/706/python-and-fme-basics.html

 

FME Python API

http://docs.safe.com/fme/html/fmepython/

 

Python Caller

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/pythoncaller.htm

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

warrendev
Enthusiast
Forum|alt.badge.img+26
  • Enthusiast
  • 121 replies
  • Best Answer
  • January 28, 2020

You can use the python caller transformer if it's during a translation. There is also python startup and shutdown scripts you can run as well. Here is some helpful information.

 

FME and Python

https://knowledge.safe.com/articles/706/python-and-fme-basics.html

 

FME Python API

http://docs.safe.com/fme/html/fmepython/

 

Python Caller

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/pythoncaller.htm