Skip to main content
Released

Sharing Python based transformers on FME Hub made possible ?

Related products:FME Form
  • March 24, 2017
  • 3 replies
  • 56 views

lifalin2016
Influencer
Forum|alt.badge.img+40

Hi,

As-is, it's cumbersome to share custom transformers developed with Python, as there's no provision for adding the separate code files.

My suggestion is to add some tags to the FMX file format for embedding the Python code directly in the FMX file, and have FME extract and compile such code on load or runtime.

The current FMX file has tags "TEMPLATE_START" and "TEMPLATE_END" for mapping file content, so how about adding some "PYTHON_START" and "PYTHON_END" tags for this ?

It might also be prudent to add some sort of Python version switch.

Cheers

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.

3 replies

geosander
Forum|alt.badge.img+7
  • March 24, 2017
I'm not a big fan of typing all my code directly in the PythonCaller/Creator, but why would the above be much different from that approach? I mean, your code is then also stored in the FMX.

 


lifalin2016
Influencer
Forum|alt.badge.img+40
  • Author
  • Influencer
  • January 25, 2023

You can't define a user interface in a PythonCaller.


stewartatsafe
Safer
Forum|alt.badge.img+10

Any user can now upload an FME Package to the FME Hub. FME Packages provide a way to build and share custom Python-based integrations that work with FME. We are redesigning FME Hub and this will be integrated more deeply into the product.

 

For now, you can access the documentation here: https://docs.safe.com/fme/html/fpkg-sdk/