Metadata-Version: 2.4
Name: SFILES2
Version: 1.1.1
Summary: Conversion between PFDs/P&IDs and SFILES 2.0 strings.
Project-URL: Homepage, https://www.pi-research.org/
Project-URL: Source, https://github.com/process-intelligence-research/SFILES2
Author-email: "Artur M. Schweidtmann" <A.Schweidtmann@tudelft.nl>, Gabriel Vogel <G.Vogel@tudelft.nl>, Edwin Hirtreiter <edwin.hirtreiter@tum.de>, Lukas Schulze Balhorn <L.Schulzebalhorn@tudelft.nl>
License-File: LICENSE
Keywords: SFILES 2.0, PFD, chemical engineering
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: ipykernel
Requires-Dist: ipython>=7.30.1
Requires-Dist: matplotlib>=3.8.4
Requires-Dist: networkx>=3.2.1
Requires-Dist: numpy>=2.1.3
Requires-Dist: pathfinding>=1.0.1
Requires-Dist: pyflowsheet>=0.2.2
Requires-Dist: tabulate>=0.8.9
Description-Content-Type: text/markdown

# SFILES 2.0 by [<img src="./docs/logos/Process_Intelligence_Black_Horizontal.png" alt="Process Intelligence Research logo" height="40">](https://www.pi-research.org/)

## Overview

**SFILES 2.0** is an open-source Python package for converting process flow diagrams (PFDs) and piping and instrumentation diagrams (P\&IDs) into an extended text-based representation. This package is developed in conjunction with the paper:

> *[SFILES 2.0: An extended text-based flowsheet representation](https://link.springer.com/article/10.1007/s11081-023-09798-9)*

The repository provides tools for:

* Representing flowsheets as graphs
* Converting graphs to SFILES 2.0 strings and back
* Demonstrating the notation rules, structure, and conversion algorithm for SFILES 2.0

### Citation

If you use SFILES 2.0 in your work, please cite:

```
@article{vogel2023sfiles,
  title={SFILES 2.0: an extended text-based flowsheet representation},
  author={Vogel, Gabriel and Hirtreiter, Edwin and Schulze Balhorn, Lukas and Schweidtmann, Artur M},
  journal={Optimization and Engineering},
  volume={24},
  number={4},
  pages={2911--2933},
  year={2023},
  publisher={Springer}
}
```

## Table of contents

- [SFILES 2.0 by ](#sfiles-20-by-)
  - [Overview](#overview)
    - [Citation](#citation)
  - [Table of contents](#table-of-contents)
  - [Installation](#installation)
  - [Demonstrations](#demonstrations)
  - [Contributors](#contributors)
  - [License](#license)
  - [Contact](#contact)

## Installation

Install the package via pip:

```bash
pip install SFILES2
```

To explore the source code and examples:

```bash
git clone https://github.com/process-intelligence-research/SFILES2.git
cd SFILES2
pip install .
```

## Demonstrations

Use the following to explore SFILES 2.0 capabilities:

* Run the Jupyter notebook `demonstration.ipynb`
* Or execute `run_demonstration.py` for a CLI-based example

These demonstrate SFILES 2.0 strings for a variety of PFDs and P\&IDs.

## Contributors

| | | |
| --- | --- | --- |
| <img src="docs/photos/Gabriel.jpg" width="50"> | [Gabriel Vogel](https://www.pi-research.org/author/gabriel-vogel/) | <a href="https://www.linkedin.com/in/gabriel-vogel-2512a9212/" rel="nofollow noreferrer"> <img src="https://i.sstatic.net/gVE0j.png" >  </a> <a href="https://scholar.google.com/citations?user=9yRGFZMAAAAJ&hl=en" rel="nofollow noreferrer"> <img src="docs/logos/google-scholar-square.svg" width="14">  </a> |
|  | [Edwin Hirtreiter](https://www.pi-research.org/author/edwin-johann-hirtreiter/) | <a href="https://www.linkedin.com/in/edwin-hirtreiter-4ab3481a5/" rel="nofollow noreferrer"> <img src="https://i.sstatic.net/gVE0j.png" >  </a> <a href="https://scholar.google.com/citations?hl=en&user=QURe_SoAAAAJ" rel="nofollow noreferrer"> <img src="docs/logos/google-scholar-square.svg" width="14">  </a> |
| <img src="docs/photos/Lukas.jpg" width="50"> | [Lukas Schulze Balhorn](https://www.pi-research.org/author/lukas-schulze-balhorn/) | <a href="https://www.linkedin.com/in/lukas-schulze-balhorn-12a3a4205/" rel="nofollow noreferrer"> <img src="https://i.sstatic.net/gVE0j.png" >  </a> <a href="https://scholar.google.com/citations?user=LZZ7piQAAAAJ&hl=en" rel="nofollow noreferrer"> <img src="docs/logos/google-scholar-square.svg" width="14">  </a> |
| <img src="docs/photos/Artur.jpg" width="50"> | [Artur M. Schweidtmann](https://www.pi-research.org/author/artur-schweidtmann/) | <a href="https://www.linkedin.com/in/schweidtmann/" rel="nofollow noreferrer"> <img src="https://i.sstatic.net/gVE0j.png" >  </a> <a href="https://scholar.google.com/citations?user=g-GwouoAAAAJ&hl=en" rel="nofollow noreferrer"> <img src="docs/logos/google-scholar-square.svg" width="14">  </a> |


## License

This project is licensed under the [MIT License](LICENSE).

## Contact

📧 [Contact](mailto:a.schweidtmann@tudelft.nl)

🌐 [Process Intelligence Research](https://www.pi-research.org)

<p align="left">
<a href="https://twitter.com/ASchweidtmann" target="blank"><img align="center" src="https://img.shields.io/badge/X-000000?style=for-the-badge&logo=x&logoColor=white" alt="fernandezbap" /></a>
</p>

<p align="left">
<a href="https://www.linkedin.com/in/schweidtmann/" target="blank"><img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white"  /></a>
</p>