Skip to content

Commit

Permalink
Merge pull request #24 from Safe/FMEENGINE-81418
Browse files Browse the repository at this point in the history
paramparsing: Add doc about different FME Flow build requirement.
  • Loading branch information
carsonyl authored and GitHub Enterprise committed Jan 9, 2024
2 parents cd2c919 + cd35c29 commit b98d51c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# fmetools changes

## 0.7.4

* Update doc for `fmetools.paramparsing` to note FME 2024 requirement
when running under FME Flow.

## 0.7.3

* Add links to HTML docs.
Expand Down
2 changes: 1 addition & 1 deletion src/fmetools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8

__version__ = "0.7.3"
__version__ = "0.7.4"

import gettext
import os
Expand Down
16 changes: 13 additions & 3 deletions src/fmetools/paramparsing.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
"""
This module provides :class:`TransformerParameterParser`,
the recommended way to access transformer parameter values in FME 2023+.
the recommended way to access transformer parameter values.
.. note::
This module can only be imported in FME 2023 or newer.
.. warning::
This module requires:
- FME Form 2023 b23224 or newer
- FME Flow 2024 b24145 or newer
Packages using this module and targeting both FME Form and FME Flow
should set ``minimum_fme_build`` in its package.yml accordingly.
"""
from __future__ import annotations

Expand All @@ -21,6 +27,10 @@ class TransformerParameterParser:
"""
Helper for getting parsed transformer parameter values.
.. warning::
Instantiating this class on FME Flow requires FME Flow b24145 or newer.
Instantiating the class on older versions of FME Flow will raise an exception.
All parameters of Python transformers are set as attributes on input features.
By convention, these attributes are given a prefix to give it a namespace and
signify that they are internal attributes.
Expand Down

0 comments on commit b98d51c

Please sign in to comment.