sysml
Read SysML v2 and KerML models from Python. Every metaclass of the specification is a Python class,
and every property and operation keeps its specification name (ownedFeature, qualifiedName,
effectiveName()). A model is read through one of two backends, with the same classes over both:
- the OpenMBEE SysML Toolkit reads your
.sysmland.kermlfiles, resolves names and computes derived properties; - a payload is a model exported as full-form interchange JSON by any SysML v2 tool.
pip install sysml
Python 3.10 or newer. The wheels for Windows x64, Linux x64 (glibc 2.28 or later), and macOS on Apple silicon (11 or later) and on Intel (10.12 or later) carry the SysML Toolkit's binding library and the standard library models. On other platforms pip installs the source distribution, which reads payloads only.
First: the standard library
Most models refer to the KerML and SysML standard library (ScalarValues::Real, ISQ::mass, and
implicitly Parts::parts and the like). Get it once, at the start of your program:
from sysml import standard_library, standard_library_json
library_dir = standard_library() # the library models the wheel carries, for the SysML Toolkit
library_json = standard_library_json() # the library as JSON, for payloads
standard_library_json() downloads the JSON (about 11 MB) from this version's GitHub release on its
first call, checks it against the SHA-256 GitHub states for the file, and keeps it in your user cache;
later calls read the cache. Where GitHub cannot be reached, download sysml_library-<version>.zip
from the release yourself and set SYSML_LIBRARY_JSON to the sysml.library.full.json it holds.
Read a model through the SysML Toolkit
from sysml import Model, standard_library
model = Model.from_toolkit("model.sysml", library_dir=standard_library())
vehicle = model.resolve("Vehicles::Vehicle")
print(vehicle.qualifiedName, [f.declaredName for f in vehicle.ownedFeature])
Read a payload
import json
from sysml import Model, PayloadLibrary, standard_library_json
with open(standard_library_json(), encoding="utf-8") as f:
library = PayloadLibrary(json.load(f)) # read once, share it
with open("model.json", encoding="utf-8") as f:
model = Model.from_full_json(json.load(f), library=library)
More
- The Python guide: https://github.com/Open-MBEE/sysml-sdk/blob/main/examples/python/README.md
- The SDK, its other languages (JavaScript/TypeScript, Java, C#, C++) and its documentation: https://github.com/Open-MBEE/sysml-sdk
- What is new, and what the SysML Toolkit does not answer yet: https://github.com/Open-MBEE/sysml-sdk/blob/main/CHANGELOG.md
The SDK is licensed under the Apache License 2.0. The standard library models the wheels carry, and the
library JSON, are licensed under the Eclipse Public License 2.0: see sysml/stdlib/LICENSE and
sysml/stdlib/NOTICE in the installed package.
Metadata
Release files for sysml 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sysml-0.1.0.tar.gz | 92.5 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| sysml-0.1.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| sysml-0.1.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details |
| sysml-0.1.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| sysml-0.1.0-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details |
Total release size: 11.9 MB
Release files / sysml-0.1.0.tar.gz
| Download URL | sysml-0.1.0.tar.gz |
|---|---|
| Size | 92.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19672b0c957132dfe83e850b4090f3169fc4ca0b0e7b832a9359d007c8cb73aa
|
|
BLAKE2b-256 checksum How to use checksums |
f112c77a4c9b9c17d878c719aef895805e2292a97094bf0145f305360a9e10e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logRelease files / sysml-0.1.0-py3-none-win_amd64.whl
| Download URL | sysml-0.1.0-py3-none-win_amd64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
630b155f7637ce4dc9f782a460eace1e95d7511e269d2accc308f7b97ea624be
|
|
BLAKE2b-256 checksum How to use checksums |
705602992f2ae419f176e0fada72ee1c1c8e5623e2c237ef3a93fd6b14f1b201
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logRelease files / sysml-0.1.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | sysml-0.1.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
6a7e7a51108eff53dba45eb8986b445bdbd63df49b7397bc12af24dd9b2e3f55
|
|
BLAKE2b-256 checksum How to use checksums |
acb8f7cb59a75d434dd062a884f0f0e6f81ad61c3cfdd4e89f7cb4ba0f429e52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logRelease files / sysml-0.1.0-py3-none-macosx_11_0_arm64.whl
| Download URL | sysml-0.1.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5a74cbd0f58d59c64f09d6b967f7da48e56b089076ffe7d1cf575138707ccfdb
|
|
BLAKE2b-256 checksum How to use checksums |
3fd43989e3df3d63b24cddcfc8ad31e789bebc506c5410bced598d06b3343e41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logRelease files / sysml-0.1.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | sysml-0.1.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
a4ddf16669afbc856d9ba539e2c876cc925482faea9e6b83a634b4f87ca70057
|
|
BLAKE2b-256 checksum How to use checksums |
398ff876fc8d7500080a77bd95dd88d1b1b6b8f205c23d53a18f1db4cead25c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logSecurity for sysml 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for sysml-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.