python 的 SysML 解析器

SysML parser for python

有人知道 Python 中有什么好的 SysML 解析器库吗?

我已经在 org.eclipse.uml2.umluml2.umlJava 但我在 Python.

中找不到等效项

Gaphor is a simple SysML modeling tool written in Python. It includes a SysML parser built-in that it uses to generate a Python data model from a gaphor model of the SysML specification. The Python module is called codegen.

要使用它,您需要使用 Gaphor 创建一个 SysML 模型。然后你会 运行 codegen 像:

python codegen.py modelfile outfile overrides

覆盖文件可用于覆盖 Python 的生成以根据您的需要进行自定义。

我不确定你的问题的确切用例是什么,但我认为这至少符合你正在寻找的内容。