Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.9 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.9 KB

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

  1. Start with a clean environment
  2. Install dev requirements using pip install -r requirements.txt
  3. Do a dev install using pip install --editable .
  4. Run tests using pytest
  5. Build wheel using python -m build --wheel
  6. To build docs: sphinx-build -M html docs docs/_build