pyDEXPI - An open-source Python implementation of the DEXPI data model

Smart, machine-readable Piping and Instrumentation Diagram (P&ID) data are key for innovation in the process industry, especially for applications of generative artificial intelligence (GenAI) (see our research projects). pyDEXPI makes the DEXPI standard accessible and usable in Python. The current release is version 1.2.0 (April 2026).
pyDEXPI is an open-source Python tool that implements the DEXPI data model. It includes a Pydantic data class model of the DEXPI data model, which allows building Python applications with the DEXPI standard. pyDEXPI also provides functions to load a Proteus .xml export of DEXPI, the current DEXPI exchange format, into the data model.
pyDEXPI implements a parser to a graph representation of P&IDs using NetworkX, so that users can work easily with the graph data. This graph representation is the basis of our work on ChatP&ID.
pyDEXPI supports DEXPI version 1.3.
Features
- DEXPI data model as Pydantic classes in Python.
- Load Proteus .xml files into a pyDEXPI instance.
- pyDEXPI toolkit to analyze and manipulate pyDEXPI models.
- Parse pyDEXPI instances to graphs in NetworkX.
- Synthetic DEXPI P&ID generation for generative AI.
Recognition
Anggawirya (Achmad) Alimin, Lukas Schulze Balhorn, and Dominik Goldstein received the Faculty Open Science Award of the Faculty of Applied Sciences at TU Delft for their work on pyDEXPI (news).
Citation
Please cite this software package as:
@InProceedings{pyDEXPI,
author = {Goldstein, Dominik P. and Schulze Balhorn, Lukas and Alimin, Achmad Anggawirya and Schweidtmann, Artur M.},
booktitle = {Proceedings of the 35th European Symposium on Computer Aided Process Engineering (ESCAPE35)},
title = {pyDEXPI:{A} {Python} framework for piping and instrumentation diagrams using the {DEXPI} information model},
year = {2025},
address = {Ghent, Belgium},
month = {July},
doi = {https://doi.org/10.69997/sct.139043},
}
Key publications
- Goldstein, D. P., Schulze Balhorn, L., Alimin, A. A., & Schweidtmann, A. M. (2025). pyDEXPI: A Python framework for piping and instrumentation diagrams (P&IDs) using the DEXPI information model. Systems and Control Transactions (Proceedings of ESCAPE 35, Ghent). doi:10.69997/sct.139043