Tools for extending Safe Software's FME using Python.
Project description
fmetools: helpers for FME Python
fmetools is a Python library that streamlines plugin development for Safe Software's FME. Developers should use fmetools as a foundation to create plugins such as transformers. It's part of the recommended toolchain for developing FME Packages to share on FME Hub.
fmetools is built on top of the Python fmeobjects
API that's included with FME,
and requires an FME installation with Python 3.8 or newer.
Getting started
The best way to get started with fmetools is through the tutorials in the FME Packages SDK Guide. The Hello World package tutorial guides you through creating a simple FME Package that uses fmetools.
The fmetools API reference is available at https://docs.safe.com/fme/html/fmetools/.
Installation
fmetools is distributed as a wheel on PyPI,
but it should not be installed with pip install
.
Instead, developers include a copy of fmetools with their FME Package.
This process is called vendorizing, and can be done using the vendorize tool on PyPI.
The Hello World package tutorial covers this topic.
FME does not include fmetools, so packages that use it must include it themselves.
For maintainers of fmetools
- Start with a clean environment
- Install dev requirements using
pip install -r requirements.txt
- Do a dev install using
pip install --editable .
- Run tests using
pytest
- Build wheel using
python -m build --wheel
- To build docs:
sphinx-build -M html docs docs/_build
fmetools changes
0.10.3
- Updated docstring references to
fmetools._deprecated.FMEBaseTransformer.*
to link to newfme.BaseTransformer
documentation.
0.10.2
- FMERequestsSession: Fix use of Windows Certificate Store in FME 2024.1.2+ and Requests 2.32.3+.
0.10.1
- Use
fme.BaseTransformer
if it exists. - Deprecate
fmetools.plugins.FMEBaseTransformer
.
0.10.0
- Fix support for Python 3.8 and require Python 3.8+.
0.9.3
- Update docstrings for FMEEnhancedTransformer and FMEBaseTransformer.
0.9.2
- In
fmetools.scripted_selection.ContainerContentResponse
, omitCONTINUE
key if there's no pagination info.
0.9.1
- Allow ScriptedSelectionCallback subclasses to omit constructor.
0.9.0
- Add support for multiple input tags. Requires FME 2024.0+.
0.8.0
- Add support for multiple output tags. Requires FME 2024.0+.
0.7.4
- Update doc for
fmetools.paramparsing
to note FME 2024 requirement when running under FME Flow. - Add Scripted Selection API
0.7.3
- Add links to HTML docs.
0.7.2
- Relax FME version requirements from 0.7.0 release.
0.7.1
- Fix type annotations when using Python 3.8 and earlier.
0.7.0
- Add HTML docs and expanded existing docstrings.
- Clarify which components are considered part of the public API.
- Add type annotations.
fmetools.plugins.FMEEnhancedTransformer
: Support Bulk Mode by default.
0.6.0
- Rename
fmetools.plugins.FMETransformer
toFMEBaseTransformer
to avoid potential confusion withfmeobjects.FMETransformer
. Instantiatingfmetools.plugins.FMETransformer
now emits a warning, and will be removed in a future release. fmetools.paramparsing.TransformerParameterParser
: Support FME >= b23264.
0.5.1
- Add
fmetools.paramparsing.TransformerParameterParser
: a class for parsing internal attribute values from transformer parameters. Requires FME 2023. - Require Python 3.7+.
0.4.4
- Fixed error when parsing custom proxy URLs starting with 'http'
0.4.3
- Support new GUI types
CHECKBOX
andCHOICE
.
0.4.2
- Prepare for PyPI release.
0.4.0
- Support new GUI types
ACTIVECHOICE_LOOKUP
andNAMED_CONNECTION
. - Int and float GUI types: parse empty string to None instead of raising ValueError.
0.3.1
- Fix FMESession leak in
parsers.parse_def_line()
.
0.3.0
- Add
guiparams
module, for parsing GUI parameter values. This initial implementation supports just a small subset of GUI types.
0.2.0
- Remove
FMEEnhancedTransformer.keyword
and replace its usages withFMETransformer.factory_name
. - Use relative imports, to support copy-paste vendorization.
0.1.4
- Add
hasSupportFor()
toplugins.FMESimplifiedReader
to allow for reader bulk mode support.
0.1.3
- Add
webservices.set_session_auth_from_named_connection()
to honour SSL verification settings on Named Connections.
0.1.2
- Add
has_support_for()
toplugins.FMETransformer
to enable transformer bulk mode support.
0.1.1
- Maintain Python 2.7 support.
0.1.0
- Respect web connection token placement settings.
0.0.2
- Added localization utilities.
- Updated logging infrastructure.
0.0.1
- Initial packaging of utility functions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fmetools-0.10.3.tar.gz
.
File metadata
- Download URL: fmetools-0.10.3.tar.gz
- Upload date:
- Size: 45.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea03ba11d52831995e4984f37e06c610a4c12e11aa86c5b07d5096fd662c1a8b |
|
MD5 | 3d4a8d568edfa731495855000544813b |
|
BLAKE2b-256 | 6b22bee8277ee4aac0bfb446f8eebd09b84943510b4740094dc1e90e407ac61f |
Provenance
The following attestation bundles were made for fmetools-0.10.3.tar.gz
:
Publisher:
release-pypi.yml
on safesoftware/fmetools
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
fmetools-0.10.3.tar.gz
- Subject digest:
ea03ba11d52831995e4984f37e06c610a4c12e11aa86c5b07d5096fd662c1a8b
- Sigstore transparency entry: 150889215
- Sigstore integration time:
- Predicate type:
File details
Details for the file fmetools-0.10.3-py2.py3-none-any.whl
.
File metadata
- Download URL: fmetools-0.10.3-py2.py3-none-any.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ea5f56303d61e9f651c6ff7861cb57c94a538aad50f8ee09be2c1992b57459d |
|
MD5 | d8c765f8d53433f789ad1ba2a6903450 |
|
BLAKE2b-256 | c3c2fafa6e71f31edf226f6fcafd2edb9c7be3196a2a0de78e83aa0f7daa63e1 |
Provenance
The following attestation bundles were made for fmetools-0.10.3-py2.py3-none-any.whl
:
Publisher:
release-pypi.yml
on safesoftware/fmetools
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
fmetools-0.10.3-py2.py3-none-any.whl
- Subject digest:
7ea5f56303d61e9f651c6ff7861cb57c94a538aad50f8ee09be2c1992b57459d
- Sigstore transparency entry: 150889218
- Sigstore integration time:
- Predicate type: