PlantUml 到序列图

PlantUml to Sequence Diagram

我用谷歌搜索了所有内容,但无法找到将 PLANTUML 转换为 python 中的序列图的工具

是否有任何库/工具可以将 plantuml 转换为序列图 使用 python?

我了解此在线工具的作用:https://www.planttext.com/ 但我想自动化这个过程,所以我不想使用在线工具

编辑:

@startuml
participant ClassA as Class_UmlA
participant ClassB as Class_UmlB

note right of Class_UmlA: Function to test
    Class_UmlA -> Class_UmlB  : Function1 
    activate Class_UmlA
@enduml

谢谢,
哈利

PlantUML 是一个 Java 程序,因此您需要 Java 运行时安装为 pre-requirement,但另一方面您不需要 Python。

1) 从 http://plantuml.com/de/download

下载 plantuml.jar

2) 运行 来自命令行 java -jar path/to/downloaded/plantuml.jar path/to/your/plantUMLfile.txt

您的文件在执行目录中生成为plantUMLfile.png

使用 java -jar plantuml.jar -help 获取完整的参数列表以充分利用命令行工具。