PySysML2 is a Python-based parser for the SysML 2.0 textual modeling language. Its main purpose is to parse a SysML 2.0 textual model into a Python object, and then transform that model into various data structures useful for data science and analysis.
I am testing out PySysML2 with some of the examples distributed in the 2024-09 - SysML v2 Pilot Implementation release. The example I am currently working on is the Camera Example (pulled into its own repo for ease of testing).
Observations so far.
PySysML2 does not appear to leverage import statements to pull in content spread across multiple files. To address this behavior, I have added a step to combine all .sysml files into a single combined file for processing with PySysML2
There appear to be a number of common key words not yet implemented in PySysML2, including private, import, and perform. See the following input and output (which can be recreated by cloning the repo above and running make.sh build.
I am testing out PySysML2 with some of the examples distributed in the 2024-09 - SysML v2 Pilot Implementation release. The example I am currently working on is the Camera Example (pulled into its own repo for ease of testing).
Observations so far.
make.sh build
.Combined SysML Input File (CombinedCameraModel.sysml)
PySysML2 command:
pysysml2 export ./dist/CombinedCameraModel.sysml --output-dir ./dist --format json,png
PySysML2 CLI Output (e.g. errors)