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.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.3.0
File Size Uploaded Provenance Actions
sysml-0.3.0.tar.gz 155.9 kB With provenance Details for sysml-0.3.0.tar.gz

Built distributions (wheels)

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

Total release size: 19.2 MB

Release files / sysml-0.3.0.tar.gz

Download URL sysml-0.3.0.tar.gz
Size 155.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aa45b6b9ba931f8c31d0d7501175c2ff1e7bab19ca5222384147c31c8166891a
BLAKE2b-256 checksum
How to use checksums
744e70d629f483f9f0f18e06d4da10194279f9652ec37b2d2b579af538923f7f
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 2, 2026.

Transparency log

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

Download URL sysml-0.3.0-py3-none-win_amd64.whl
Size 4.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c7c805afc9c09771d042239a73baefdb3c54e8331c86d0310019f4f11158e1a9
BLAKE2b-256 checksum
How to use checksums
393a987196ed762ca9ef2009930ae67b8d61a36c06f65c2ebcd7446f2446c2fe
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 2, 2026.

Transparency log

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

Download URL sysml-0.3.0-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
449b50475f485280b041e7c10a00e36a11eb928a2ef86c3bbb2db00dae0e740b
BLAKE2b-256 checksum
How to use checksums
edb41b189dbc6c2b3f3bd2fe14f1b5fb491922bf4ac0076895d8d6ff275c9917
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 2, 2026.

Transparency log

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

Download URL sysml-0.3.0-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
2a123afc75769a6591427e7d1e88494ef56b6e19d360781dbc6af4ace8c48b10
BLAKE2b-256 checksum
How to use checksums
09b405d90a8c5416bc792cb96dc7f30d47b09c5f1aeb46b8490874e3760ba3b7
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 2, 2026.

Transparency log

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

Download URL sysml-0.3.0-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
917adb188758f66b953a41d1a15e932ba98271e6a97afd201b6ca2d0399772d1
BLAKE2b-256 checksum
How to use checksums
538e26cd1ded3fdbb42b55fcc474b4d65fd8f119e16081640cfa5816cc36c672
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 2, 2026.

Transparency log

Security for sysml 0.3.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.3.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 Dec 2, 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