This release is a pre-release and may not be stable for production use.
mihosoft-vmf-runtime
Runtime library for Python models generated by VMF (Visual Modeling Framework).
Installation
pip install mihosoft-vmf-runtime
Version lockstep: Generated Python models (
model.py) andmihosoft-vmf-runtimebelong to the same VMF version. When upgrading VMF, regenerate your models and updatemihosoft-vmf-runtimeto the matching version.
What's included
- Pure Python 3.10+ package (
vmf_runtime) with full PEP 561 type annotations (py.typed) and zero external dependencies. - Runtime enforcement of declared scalar types, numeric widths (
int8/int16/int32/int64,float32/float64,char), enum literals, UUIDs, and model types. - Managed containment, bidirectional opposite references, cycle checks, and
with vmf.edit(origin):atomic rollback blocks. - Managed Pythonic collections (
ScalarList,ScalarSet,ScalarMap,ContainmentList,ContainmentSet,ReferenceList,ReferenceSet) and keyed lookups. - Live read-only views (
as_read_only()) and frozen@Immutablevalue objects. - Equality modes (
INSTANCE,CONTAINMENT_AND_EXTERNAL,ALL) wired to__eq__/__hash__, pluscontent_equals()/content_hash_code()anddeep_copy(). - Local and recursive change listeners, recording, and undo/redo history.
- Reflection metadata (
vmf_type), including uniformvmf:*annotations. - Constraint validation (
@Multiplicity,@Range,@Length,@Pattern). - Reference-aware and plain JSON snapshots (
ModelSnapshot.write/read/write_plain/read_plain), including@Idstable references and exact arbitrary-precision integers. - Depth-first graph traversal, enter/exit visitors, and writable graph cursors (
ModelGraphCursor).
Usage
Generate Python models from your VMF Java model interfaces (vmf { targets = ['python'] } in Gradle or <targets><target>python</target></targets> in Maven), then import the generated model.py:
from com.example.plant.model import ModelSnapshot, Plant, Vessel
plant = Plant(id="plant-1")
vessel = Vessel(id="vessel-1")
plant.vessels.add(vessel)
plant.primary_vessel = vessel
payload = ModelSnapshot.write(plant)
restored = ModelSnapshot.read(payload, Plant)
Documentation
Metadata
Release files for mihosoft-vmf-runtime 0.5.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mihosoft_vmf_runtime-0.5.0a1-py3-none-any.whl | Python 3 | none | any | Details for mihosoft_vmf_runtime-0.5.0a1-py3-none-any.whl |
Release files / mihosoft_vmf_runtime-0.5.0a1-py3-none-any.whl
| Download URL | mihosoft_vmf_runtime-0.5.0a1-py3-none-any.whl |
|---|---|
| Size | 57.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9e6a4e80fb3376c9baedf5a247d247573c69103413ddae9d3352382624bbd27
|
|
BLAKE2b-256 checksum How to use checksums |
9cbe28fa7e888b9d6ada1866146107b475f7ebcc11086763c65eb4335a6ff164
|
| 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 30, 2026.
Transparency logSecurity for mihosoft-vmf-runtime 0.5.0a1
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
1 file in this release has been uploaded with provenance metadata.
Attestation for mihosoft_vmf_runtime-0.5.0a1-py3-none-any.whl
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 30, 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.