FMPy
Simulate Functional Mock-up Units (FMUs) in Python
Decision gist · record as of 2026-08-14
Yes, with conditions. FMPy is actively maintained, has low install friction, and is the standard Python tool for FMI simulation. However, verify the license terms before use—the metadata shows 'unclear' treatment with no published SPDX identifier. If you work with FMU-based models or need FMI standard compliance in Python, this is the right choice; otherwise, it is not applicable.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- FMU files must be obtained separately (e.g., from the FMI cross-check repository).
- Low install friction with a pure-wheel distribution.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before use in proprietary or restricted contexts.
last release 2026-08-13 (1 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 210,102 downloads/mo, #9,504 on PyPI
Alternatives
Verify before relying
pip install fmpy[complete]
from fmpy import simulate_fmu, dump
fmu = 'Rectifier.fmu'
info = dump(fmu)
result = simulate_fmu(fmu)- Actual license terms and restrictions—metadata shows 'unclear' treatment with no SPDX or raw license field.
- Whether cmake and C compilation toolchain are required for all use cases or only for compiling C code FMUs.
What it is and what it does
FMPy is a Python library for simulating Functional Mock-up Units (FMUs), which are standardized simulation components used across engineering and scientific modeling. It implements the FMI standard (versions 1.0, 2.0, and 3.0) and supports both Co-Simulation and Model Exchange modes, allowing you to load, inspect, and run FMU files directly from Python or via command-line tools. The library includes a graphical user interface for interactive exploration, a web app built on Dash for sharing simulations, and Jupyter Notebook integration for computational workflows.
Typical usage involves loading an FMU file, querying its metadata (variables, parameters, initial conditions), running a simulation over a time horizon, and analyzing or plotting the results. FMPy depends on numpy for numerical computation, lxml for XML parsing (FMU metadata), cmake for compiling C code FMUs, and several other utilities. It runs on Windows, Linux, and macOS and requires Python 3.10 or later.
Use it for
- Simulate control systems or physical models packaged as FMUs in Python scripts for parameter studies or optimization loops.
- Inspect and debug FMU metadata and behavior interactively using the command-line tools or GUI without writing code.
- Create reproducible simulation notebooks in Jupyter for documentation, teaching, or collaborative engineering analysis.
- Share FMU simulations with non-technical stakeholders via the web app without requiring them to install Python or specialized tools.
- Compile and debug C code FMUs using generated CMake projects for model development and validation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
FMPy is actively maintained, has low install friction, and is the standard Python tool for FMI simulation. However, verify the license terms before use—the metadata shows 'unclear' treatment with no published SPDX identifier. If you work with FMU-based models or need FMI standard compliance in Python, this is the right choice; otherwise, it is not applicable.
Install
fmpy on PyPI
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with a release dated 2026-08-13. Requires Python 3.10 or later and brings in 8 runtime dependencies including numpy, lxml, and cmake for C code compilation support.
Requires Python 3.10 or later. FMU files must be obtained separately (e.g., from the FMI cross-check repository).
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before use in proprietary or restricted contexts.
Quickstart
pip install fmpy[complete]
from fmpy import simulate_fmu, dump
fmu = 'Rectifier.fmu'
info = dump(fmu)
result = simulate_fmu(fmu)
Verify before relying
- Actual license terms and restrictions—metadata shows 'unclear' treatment with no SPDX or raw license field.
- Whether cmake and C compilation toolchain are required for all use cases or only for compiling C code FMUs.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagesattrscmakejinja2larklxmlmsgpacknbformatnumpy |
| Maintenance | Actively maintained 1 days since the last release |
| First released | |
| Downloads | 210,102 / month, #9,504 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: fmpy-0.3.31-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “FMU simulation Python”
- FMPyFMPy simulates Functional Mock-up Units (FMUs) conforming to FMI 1.0,…
- simpySimPy is a process-based discrete-event simulation framework that…
- salabimSalabim is a Python library for discrete event simulation (DES) that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also mujoco-usd-converter · notebook · testbook · PySpice · jupyter · jupyterlab · jupyter-dash · matplotlib-inline · customtkinter · mkdocs-jupyter