This library can generate PlanPro files from a yaramo topology.
Currently, it's generating PlanPro 1.9 files, but 1.10 is upcoming.
To use the generator as a library, install it via:
pip3 install git+https://github.com/simulate-digital-rail/planpro-exporter
Afterwards you can import it to your application with:
from planproexporter.generator import Generator
# topology is a yaramo.models.Topology object
Generator().generate(topology, author_name="Name", organisation="Organisation", filename="out.ppxml")
Further examples can be found in the demo repository.
Feel free to create pull requests to this repository :)