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

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.2.0
File Size Uploaded Provenance Actions
sysml-0.2.0.tar.gz 129.8 kB With provenance Details for sysml-0.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 15.8 MB

Release files / sysml-0.2.0.tar.gz

Download URL sysml-0.2.0.tar.gz
Size 129.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ff1c09007f927468999a63614f19a2b319831cae7b6a1bf296d0cde86686d27d
BLAKE2b-256 checksum
How to use checksums
8a866e69e0b9b24fe6d5027b4b90aa934f2900cd648aad716ede365e7ad0eb0a
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 Nov 9, 2026.

Transparency log

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

Download URL sysml-0.2.0-py3-none-win_amd64.whl
Size 3.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
fdb437ee4830b4c00053c0b5f153176ec337d08de9bb02f8aa50a0d4fa7d48e0
BLAKE2b-256 checksum
How to use checksums
1afd1eb75ab2a10ca70da21cb9d367ded06a6fed9f59297cba5bccdd26aa6a11
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 Nov 9, 2026.

Transparency log

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

Download URL sysml-0.2.0-py3-none-manylinux_2_28_x86_64.whl
Size 4.0 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e31bc7634e24c0c14e77d54bedefcd183731815a99f6ccc148f85cca3361fae6
BLAKE2b-256 checksum
How to use checksums
3aa385561eb06d18f2c42d9072d28e8581b0849709b164485db66e7eb40ff5de
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 Nov 9, 2026.

Transparency log

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

Download URL sysml-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 3.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
47980c1dd67e122a0a5f1defecbbb85dfd3a28068fecf3f74adf196c8cb3e1fa
BLAKE2b-256 checksum
How to use checksums
555c67abcd710a2c334a3fcba2078d44f8279e2e6d814bd74d32e2bfeb30fb20
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 Nov 9, 2026.

Transparency log

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

Download URL sysml-0.2.0-py3-none-macosx_10_12_x86_64.whl
Size 4.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ae31d9fc095ac40dbd66f7d2cd91d333ef8e63e70dd76c085869e21f06612ef4
BLAKE2b-256 checksum
How to use checksums
f7c1f96e1d9dbb926d6adbe4a1d683666ac7647a24979a8164842e3dd1c5f97d
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 Nov 9, 2026.

Transparency log

Security for sysml 0.2.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.

Select from 5 files

Attestation for sysml-0.2.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 Nov 9, 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