Skip to main content
Solved

External Python script

  • January 28, 2020
  • 1 reply
  • 114 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

 

 

View original
Did this help you find an answer to your question?

1 reply

warrendev
Enthusiast
Forum|alt.badge.img+23
  • Enthusiast
  • 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

 

 


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