Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SysML parser for python [closed]

Does anyone know any good SysML parser libraries in Python?

I'm already using the org.eclipse.uml2.uml library in Java but I couldn't find the equivalent in Python.

like image 734
maskarih Avatar asked Nov 01 '22 08:11

maskarih


1 Answers

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.

To use it you would create a SysML model using Gaphor. Then you would run the codegen like:

python codegen.py modelfile outfile overrides

The overrides file can be used to override the generation of Python to customize to your needs.

I'm not sure what your exact use case is from your question, but I think this would at least along the lines of what you are looking for.

like image 189
Dan Yeaw Avatar answered Nov 15 '22 04:11

Dan Yeaw