Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

opensysml

opensysml is the Python client for the OpenSysML SysML v2 parser, model analysis and execution service. Load SysML models, inspect symbols and diagnostics, evaluate values, verify constraints, run behaviors, edit source, and query model documents from Python.

Install

Python 3.10 or later is required. Install the published package from PyPI:

pip install opensysml

The runtime dependencies are grpcio>=1.83.0, protobuf>=7.35.1 and sigstore>=4.5.0,<5.

A development snapshot of the client is published every night as opensysml==<next release>.dev<yyyymmdd>, which pip install opensysml never picks up; install one by exact version. It starts the sysml-grpc of the same night's snapshot, whose digests it pins. See Nightly snapshots.

Quickstart

import opensysml

source = """\
package Demo {
    part def Vehicle {
        attribute mass default = 1500.0;
    }
    part sedan : Vehicle {
        attribute :>> mass = 1800.0;
    }
}
"""

model = opensysml.loads(source)
if not model.ok:
    for diagnostic in model.diagnostics:
        print(diagnostic)
    raise SystemExit("The model has errors.")

print(model.eval("mass", subject="Demo::sedan"))
1800.0

The service

The client talks to a sysml-grpc service. You do not have to install or start one: the first connection starts a private service for the current interpreter and stops it when the interpreter exits.

To find the service binary, the client checks, in order:

  1. $OPENSYSML_BINARY, if set.
  2. The shared cache at ~/.opensysml/bin/sysml-grpc.
  3. A download of the OpenSysML release this package was built against.
  4. A sysml-grpc on $PATH.

A downloaded binary is verified against a SHA-256 digest shipped inside the package, so a normal pip install opensysml followed by opensysml.connect() needs no environment variables and no extra setup. Downloading another release is also verified, through its signed checksum manifest; an unverifiable download is refused rather than trusted.

To use a service you run yourself, pass its address:

model = opensysml.connect("localhost:50051").load("model.sysml")

The service guide covers the cache, offline use, trust configuration and connecting to an external service.

Documentation

To install from a checkout, run tests, regenerate protobufs or pin release digests, see DEVELOPING.md.

Metadata

Release files for opensysml 0.12.2.dev20261111

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

Source distribution (sdist)

Source distribution for opensysml 0.12.2.dev20261111
File Size Uploaded Provenance Actions
opensysml-0.12.2.dev20261111.tar.gz 506.3 kB With provenance Details for opensysml-0.12.2.dev20261111.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opensysml 0.12.2.dev20261111
File Interpreter ABI Platform Actions
opensysml-0.12.2.dev20261111-py3-none-any.whl Python 3 none any Details for opensysml-0.12.2.dev20261111-py3-none-any.whl

Total release size: 788.7 kB

Release files / opensysml-0.12.2.dev20261111.tar.gz

Download URL opensysml-0.12.2.dev20261111.tar.gz
Size 506.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d39e7b27874c27cd15651fb92200cf3c8cdc8fb27204a6b101951b5b5527ae1e
BLAKE2b-256 checksum
How to use checksums
b436108dba6a2c60a63fb6cfaea4dbb7c5d834f11c7f47c24a0364b70ba862b3
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 11, 2026.

Transparency log

Release files / opensysml-0.12.2.dev20261111-py3-none-any.whl

Download URL opensysml-0.12.2.dev20261111-py3-none-any.whl
Size 282.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96f8fac2424c2904edd2bf1ea12dc0ed1b1c8066bd0dad0d859eabab979f1a23
BLAKE2b-256 checksum
How to use checksums
033faf4a587a095675b8c0951776a7c5b40546159b69285a38dabf4fb8cdb4d2
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 11, 2026.

Transparency log

Security for opensysml 0.12.2.dev20261111

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for opensysml-0.12.2.dev20261111.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 11, 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.

Release history Release notifications | RSS feed

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