pythonparsingumlsysml

SysML parser for python


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.


Solution

  • 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.