Skip to main content

simparse

simparse is a fast, lightweight scanner for simulation project and case metadata, implemented in Rust with a Python API. It is built for agent and automation workflows: inventory a directory of models, preflight a case, and decide when a heavier vendor tool should be called next.

Install

pip install simparse

Prebuilt wheels are available for Windows x86_64, macOS arm64 and Linux x86_64 (manylinux2014), Python 3.9+.

Usage

import simparse

# One file. Format is detected from the suffix and content.
info = simparse.inspect("/path/to/model.mph", summary=True)
print(info["format"], info["ok"])

# Directories and files, recursively.
for entry in simparse.scan(["/path/to/projects"], summary=True):
    print(entry["file_name"], entry["format"])

inspect(path, format="auto", include_paths=False, summary=False) returns one result dict. scan(paths, recursive=True, include_paths=False, summary=False) returns one result per supported file found.

  • summary=True gives a deterministic, bounded preflight view: total counts with capped samples and explicit parser limitations. Leave it off for the full shallow inventory.
  • include_paths=True adds full source paths to the results. By default, results carry file names only.

Each result also has an ir field: a compact inspection manifest (CAD dialect for STEP, CAE dialect for simulation formats) that describes observed metadata. The inspection manifest contains metadata.

For COMSOL MPH files, Python can also compare saved model settings, export a stored mesh to VTU, and read saved solution vectors without launching COMSOL.

simparse.comsol_diff("before.mph", "after.mph")
simparse.comsol_vtu("solved.mph", "mesh.vtu", sequence="mesh1")
simparse.comsol_solutions("solved.mph")
vector = simparse.comsol_solution("solved.mph", sequence="sol1")

Solution extraction covers verified COMSOL 6.4 stationary and fixed-size transient layouts. Vectors are in native solver order. Spatial field reconstruction requires the extended mesh mapping and element interpolation.

Supported formats

Format Files What is reported
STEP Part 21 .step, .stp Schema names, entity-type counts, product names, length-unit declarations
COMSOL .mph File version, model info and tree, used licenses, binary block inventory
Abaqus .inp, .inc Include graph, node/element counts, materials, sections, steps, loads, BCs, output requests
Fluent .cas.h5, .msh.h5 HDF5 object tree, dataset shapes, zone, boundary and settings hints
Ansys Electronics Desktop (HFSS / Icepak) .aedt, .aedtz Design and solution types, solved status, variables, setups, sweeps, ports, boundaries, materials, mesh operations, Icepak thermal settings
Ansys Mechanical .mechdb, .mechdat Release, analyses, bodies, materials, contacts, loads, results, geometry sources
Icepak Classic .tzr Project name, entry and file counts, sizes, job and model payload presence
Simcenter FloTHERM .pack, .xml, .floxml Project archive inventory; FloXML model and solve options, grid, attributes, geometry, heat sources, domain boundaries
Simulink .slx, .mdl Model kind, release, block and library inventory, subsystems, Stateflow, root ports, solver settings
MATLAB data .mat Variable names, classes, dimensions and flags for Level 4, v5–v7 and v7.3 files

Files are read shallowly and streamed where possible, so large archives and decks scan quickly. FloXML files often use the generic .xml suffix; simparse identifies them by their root element, so directory scans pick up FloXML projects among other XML files.

License and issues

simparse is free to use, including commercial use, under the proprietary license in the LICENSE file shipped with each wheel. Copyright 2026 SVD Lab. Third-party components are listed with their licenses in THIRD_PARTY_NOTICES.

Report bugs and requests at https://github.com/svd-ai-lab/sim-cli/issues with the simparse label.

Metadata

Release files for simparse 0.5.0

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

Built distributions (wheels)

Table of built distributions (wheels) for simparse 0.5.0
File Interpreter ABI Platform Actions
simparse-0.5.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for simparse-0.5.0-cp39-abi3-win_amd64.whl
simparse-0.5.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for simparse-0.5.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
simparse-0.5.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for simparse-0.5.0-cp39-abi3-macosx_11_0_arm64.whl

Total release size: 3.9 MB

Release files / simparse-0.5.0-cp39-abi3-win_amd64.whl

Download URL simparse-0.5.0-cp39-abi3-win_amd64.whl
Size 1.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
29fcf4c9346e4314926058225f3dab52d675c7e51b1fc6a2d9c45f02cb9445f1
BLAKE2b-256 checksum
How to use checksums
7088afdd5412b0e230c59f06fef1af61c12bae8e1a9f9b93a1a43280f2396cca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / simparse-0.5.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL simparse-0.5.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.4 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
500e0f1f656f94f275450bf4a7bf37acbad2305a8c51a7c513ca0a517d15831f
BLAKE2b-256 checksum
How to use checksums
7d77a7c4a88872fee1a01dd7e767b1662bdac20192a41a6f490eed6c4b9ba4a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / simparse-0.5.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL simparse-0.5.0-cp39-abi3-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f583afcbc65b7a8e6ca175aeb66f6ff32b3e925803edfb613a049ae23ec77bc4
BLAKE2b-256 checksum
How to use checksums
805c2b05ac44353a1c4544bfdf879e20b36e703dfbf4c3357031719a3b8a96cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Security for simparse 0.5.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

This release

0.5.0 This release

3 release files No provenance

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