Skip to main content

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 .sysml and .kerml files, 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 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.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sysml 0.3.1
File Size Uploaded Provenance Actions
sysml-0.3.1.tar.gz 155.9 kB With provenance Details for sysml-0.3.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sysml 0.3.1
File Actions
sysml-0.3.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for sysml-0.3.1-py3-none-win_amd64.whl
sysml-0.3.1-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for sysml-0.3.1-py3-none-manylinux_2_28_x86_64.whl
sysml-0.3.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for sysml-0.3.1-py3-none-macosx_11_0_arm64.whl
sysml-0.3.1-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for sysml-0.3.1-py3-none-macosx_10_12_x86_64.whl

Total release size: 19.2 MB

Release files / sysml-0.3.1.tar.gz

Download URL sysml-0.3.1.tar.gz
Size 155.9 kB
Tags Source
SHA-256 checksum
How to use checksums
51af5753a209f1cc84e1709dab9a785dc549d26ecd31888ae63a509f303418e2
BLAKE2b-256 checksum
How to use checksums
7c9a3d3bcf8b991d254467402be32fe6c0f403bd151503a5626f9b5029fbb210
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Release files / sysml-0.3.1-py3-none-win_amd64.whl

Download URL sysml-0.3.1-py3-none-win_amd64.whl
Size 4.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3afcb1c966d619abed68e47f77bd9f78eda4ada103790a159aa33449b06df74d
BLAKE2b-256 checksum
How to use checksums
779ef1762ffd64466ebfcfa92aa94a60ed58603e22c5e9925570b34fa2d5dd4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Release files / sysml-0.3.1-py3-none-manylinux_2_28_x86_64.whl

Download URL sysml-0.3.1-py3-none-manylinux_2_28_x86_64.whl
Size 4.8 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5225df8f75fb5a6e18e8b7d7a6e3ecd3f7cac74741742cfd9295f5fd26b52e7a
BLAKE2b-256 checksum
How to use checksums
596f66d4781be777e6e10e37c13de94a6a3935faad9719fe4412990d3172c0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Release files / sysml-0.3.1-py3-none-macosx_11_0_arm64.whl

Download URL sysml-0.3.1-py3-none-macosx_11_0_arm64.whl
Size 4.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1c00b28f7163b5f94b6672ee46daa900edc41712fd3c8b10023a5aa1722f8550
BLAKE2b-256 checksum
How to use checksums
e429c0539521231fcecbd0766e277280360c780bc27ec3e9cab015e433b95773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Release files / sysml-0.3.1-py3-none-macosx_10_12_x86_64.whl

Download URL sysml-0.3.1-py3-none-macosx_10_12_x86_64.whl
Size 4.9 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
141b1c9893653bab32427a088ac208bf38363cc82471b101fb858f95a984abc3
BLAKE2b-256 checksum
How to use checksums
3112ddbca6e19e5e6aeab3b648a04c485dee7f64e4e73e937702379cea475a77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 3, 2026.

Transparency log

Security for sysml 0.3.1

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.

Select from 5 files

Attestation for sysml-0.3.1.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 Dec 3, 2026.

Transparency log

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

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page