simparse 0.3.2__tar.gz → 0.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of simparse might be problematic. Click here for more details.
- {simparse-0.3.2 → simparse-0.3.4}/Cargo.lock +5 -4
- {simparse-0.3.2 → simparse-0.3.4}/Cargo.toml +1 -1
- {simparse-0.3.2 → simparse-0.3.4}/PKG-INFO +85 -68
- {simparse-0.3.2 → simparse-0.3.4}/README.md +84 -67
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/Cargo.toml +1 -0
- simparse-0.3.4/crates/simparse-core/examples/ir_asset_probe.rs +444 -0
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/dispatch.rs +152 -132
- simparse-0.3.4/crates/simparse-core/src/ir.rs +264 -0
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/lib.rs +22 -18
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/parsers/comsol.rs +55 -6
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/parsers/flotherm.rs +554 -554
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/parsers/hfss.rs +620 -620
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/parsers/icepak.rs +114 -114
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/parsers/mod.rs +23 -21
- simparse-0.3.4/crates/simparse-core/src/parsers/simulink.rs +1029 -0
- simparse-0.3.4/crates/simparse-core/src/parsers/step.rs +302 -0
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/schema.rs +360 -343
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/summary.rs +862 -782
- simparse-0.3.4/crates/simparse-core/tests/simulink.rs +419 -0
- simparse-0.3.4/crates/simparse-core/tests/step_ir.rs +209 -0
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/tests/synthetic.rs +554 -554
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-hdf5/src/lib.rs +564 -564
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-py/src/lib.rs +67 -67
- {simparse-0.3.2 → simparse-0.3.4}/pyproject.toml +20 -20
- {simparse-0.3.2 → simparse-0.3.4}/python/simparse/__init__.pyi +21 -21
- {simparse-0.3.2 → simparse-0.3.4}/LICENSE +0 -0
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/error.rs +0 -0
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-core/src/parsers/abaqus.rs +0 -0
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-hdf5/Cargo.toml +0 -0
- {simparse-0.3.2 → simparse-0.3.4}/crates/simparse-py/Cargo.toml +0 -0
- {simparse-0.3.2 → simparse-0.3.4}/python/simparse/__init__.py +0 -0
- {simparse-0.3.2 → simparse-0.3.4}/python/simparse/py.typed +0 -0
|
@@ -826,7 +826,7 @@ checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
|
|
|
826
826
|
|
|
827
827
|
[[package]]
|
|
828
828
|
name = "simparse-cli"
|
|
829
|
-
version = "0.3.
|
|
829
|
+
version = "0.3.4"
|
|
830
830
|
dependencies = [
|
|
831
831
|
"anyhow",
|
|
832
832
|
"clap",
|
|
@@ -837,13 +837,14 @@ dependencies = [
|
|
|
837
837
|
|
|
838
838
|
[[package]]
|
|
839
839
|
name = "simparse-core"
|
|
840
|
-
version = "0.3.
|
|
840
|
+
version = "0.3.4"
|
|
841
841
|
dependencies = [
|
|
842
842
|
"flate2",
|
|
843
843
|
"quick-xml",
|
|
844
844
|
"schemars",
|
|
845
845
|
"serde",
|
|
846
846
|
"serde_json",
|
|
847
|
+
"sha2",
|
|
847
848
|
"simparse-hdf5",
|
|
848
849
|
"tar",
|
|
849
850
|
"tempfile",
|
|
@@ -854,7 +855,7 @@ dependencies = [
|
|
|
854
855
|
|
|
855
856
|
[[package]]
|
|
856
857
|
name = "simparse-hdf5"
|
|
857
|
-
version = "0.3.
|
|
858
|
+
version = "0.3.4"
|
|
858
859
|
dependencies = [
|
|
859
860
|
"flate2",
|
|
860
861
|
"hdf5-pure",
|
|
@@ -867,7 +868,7 @@ dependencies = [
|
|
|
867
868
|
|
|
868
869
|
[[package]]
|
|
869
870
|
name = "simparse-py"
|
|
870
|
-
version = "0.3.
|
|
871
|
+
version = "0.3.4"
|
|
871
872
|
dependencies = [
|
|
872
873
|
"pyo3",
|
|
873
874
|
"serde",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simparse
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -13,75 +13,92 @@ License-Expression: Apache-2.0
|
|
|
13
13
|
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
15
15
|
|
|
16
|
-
# simparse
|
|
17
|
-
|
|
18
|
-
`simparse` is a lightweight Rust and Python scanner for simulation project and
|
|
19
|
-
case metadata.
|
|
20
|
-
|
|
21
|
-
## Supported formats
|
|
22
|
-
|
|
23
|
-
| Format | Files |
|
|
24
|
-
|---|---|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
| Ansys
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
16
|
+
# simparse
|
|
17
|
+
|
|
18
|
+
`simparse` is a lightweight Rust and Python scanner for simulation project and
|
|
19
|
+
case metadata.
|
|
20
|
+
|
|
21
|
+
## Supported formats
|
|
22
|
+
|
|
23
|
+
| Format | Files |
|
|
24
|
+
|---|---|
|
|
25
|
+
| STEP Part 21 declarations | `.step`, `.stp` |
|
|
26
|
+
| COMSOL | `.mph` |
|
|
27
|
+
| Abaqus | `.inp`, `.inc` |
|
|
28
|
+
| Fluent | `.cas.h5`, `.msh.h5` |
|
|
29
|
+
| Ansys Electronics Desktop (HFSS / Icepak) | `.aedt`, `.aedtz` |
|
|
30
|
+
| Ansys Mechanical | `.mechdb`, `.mechdat` |
|
|
31
|
+
| Icepak Classic | `.tzr` |
|
|
32
|
+
| Simcenter FloTHERM | `.pack`, `.xml`, `.floxml` |
|
|
33
|
+
| Simulink | `.slx`, `.mdl` |
|
|
34
|
+
|
|
35
|
+
## Design
|
|
36
|
+
|
|
37
|
+
`simparse` is meant to compose with existing simulation tools, not replace them.
|
|
38
|
+
It focuses on lightweight agent workflows: metadata, inventory, quick directory
|
|
39
|
+
scans, and deciding when a heavier vendor or Python tool should be called next.
|
|
40
|
+
See [tool design principles](docs/design-principles.md).
|
|
41
|
+
|
|
42
|
+
The [draft AI Infra System IR](docs/ir.md) defines compact inspection manifests
|
|
43
|
+
for cooling, advanced packaging and 3D IC, with CAD/CAE dialects and software
|
|
44
|
+
extensions. Geometry, meshes and result data stay in referenced artifacts.
|
|
45
|
+
JSON inspection results include an additive `ir` field alongside the existing
|
|
46
|
+
format-specific summary. STEP uses the CAD dialect; supported simulation formats
|
|
47
|
+
use the CAE dialect. The draft describes observed metadata, not executable models.
|
|
48
|
+
|
|
49
|
+
## CLI
|
|
50
|
+
|
|
51
|
+
```powershell
|
|
52
|
+
cargo run -p simparse-cli -- inspect /path/to/model.mph --json
|
|
53
|
+
cargo run -p simparse-cli -- inspect /path/to/assembly.step --json --summary
|
|
54
|
+
cargo run -p simparse-cli -- inspect /path/to/thermal-model.xml --json --summary
|
|
55
|
+
cargo run -p simparse-cli -- inspect /path/to/model.mph --json --summary
|
|
56
|
+
cargo run -p simparse-cli -- scan /path/to/history --jsonl
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Use `--summary` for a deterministic, bounded preflight view. It reports total
|
|
60
|
+
counts with capped samples and explicit parser limitations. Omit it when the
|
|
61
|
+
full shallow inventory is needed.
|
|
62
|
+
|
|
63
|
+
STEP inspection streams source declarations with bounded metadata retention. It
|
|
64
|
+
reports schema names, entity-type counts, selected product names and length-unit
|
|
65
|
+
declarations. Counts are source records, not assembly occurrence counts or proof
|
|
66
|
+
of valid geometry. Units remain scoped declarations; no global scale is guessed.
|
|
67
|
+
Incomplete input or skipped records set `truncated`. For STEP, `--max-text-bytes`
|
|
68
|
+
limits each retained record, capped at 64 KiB, rather than the entire file read.
|
|
69
|
+
|
|
70
|
+
FloXML files commonly use the generic `.xml` suffix. `simparse` checks their
|
|
71
|
+
root element, so directory scans include `<xml_case>` and `<sm_xml_case>` files
|
|
72
|
+
while skipping unrelated XML.
|
|
73
|
+
|
|
74
|
+
## Python
|
|
75
|
+
|
|
76
|
+
```powershell
|
|
60
77
|
maturin develop
|
|
61
78
|
python -c "import simparse; print(simparse.inspect('/path/to/model.inp', summary=True))"
|
|
62
79
|
python -c "import simparse; print(simparse.scan(['/path/to/history'], summary=True))"
|
|
63
80
|
```
|
|
64
|
-
|
|
65
|
-
## Benchmark
|
|
66
|
-
|
|
67
|
-

|
|
68
|
-
|
|
69
|
-
```powershell
|
|
70
|
-
python benchmarks/compare.py
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
This benchmark models one practical agent path: call one external tool to scan a
|
|
74
|
-
group of public simulation artifacts. The bars include process startup and
|
|
75
|
-
library import cost. The JSON artifact also records an in-process Python
|
|
76
|
-
baseline for context; those numbers are useful for library-level comparison, but
|
|
77
|
-
are not the primary agent tool-call scenario.
|
|
78
|
-
|
|
79
|
-
The benchmark downloads public URLs listed in `benchmarks/public-artifacts.json`
|
|
80
|
-
into `target/` and writes `artifacts/public-benchmark.json` plus
|
|
81
|
-
`artifacts/public-benchmark.svg`. Vendor-native parser timings are not included
|
|
82
|
-
because they require locally licensed software or APIs.
|
|
83
|
-
|
|
84
|
-
## License
|
|
85
|
-
|
|
86
|
-
Apache-2.0
|
|
81
|
+
|
|
82
|
+
## Benchmark
|
|
83
|
+
|
|
84
|
+

|
|
85
|
+
|
|
86
|
+
```powershell
|
|
87
|
+
python benchmarks/compare.py
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
This benchmark models one practical agent path: call one external tool to scan a
|
|
91
|
+
group of public simulation artifacts. The bars include process startup and
|
|
92
|
+
library import cost. The JSON artifact also records an in-process Python
|
|
93
|
+
baseline for context; those numbers are useful for library-level comparison, but
|
|
94
|
+
are not the primary agent tool-call scenario.
|
|
95
|
+
|
|
96
|
+
The benchmark downloads public URLs listed in `benchmarks/public-artifacts.json`
|
|
97
|
+
into `target/` and writes `artifacts/public-benchmark.json` plus
|
|
98
|
+
`artifacts/public-benchmark.svg`. Vendor-native parser timings are not included
|
|
99
|
+
because they require locally licensed software or APIs.
|
|
100
|
+
|
|
101
|
+
## License
|
|
102
|
+
|
|
103
|
+
Apache-2.0
|
|
87
104
|
|
|
@@ -1,71 +1,88 @@
|
|
|
1
|
-
# simparse
|
|
2
|
-
|
|
3
|
-
`simparse` is a lightweight Rust and Python scanner for simulation project and
|
|
4
|
-
case metadata.
|
|
5
|
-
|
|
6
|
-
## Supported formats
|
|
7
|
-
|
|
8
|
-
| Format | Files |
|
|
9
|
-
|---|---|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
| Ansys
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
# simparse
|
|
2
|
+
|
|
3
|
+
`simparse` is a lightweight Rust and Python scanner for simulation project and
|
|
4
|
+
case metadata.
|
|
5
|
+
|
|
6
|
+
## Supported formats
|
|
7
|
+
|
|
8
|
+
| Format | Files |
|
|
9
|
+
|---|---|
|
|
10
|
+
| STEP Part 21 declarations | `.step`, `.stp` |
|
|
11
|
+
| COMSOL | `.mph` |
|
|
12
|
+
| Abaqus | `.inp`, `.inc` |
|
|
13
|
+
| Fluent | `.cas.h5`, `.msh.h5` |
|
|
14
|
+
| Ansys Electronics Desktop (HFSS / Icepak) | `.aedt`, `.aedtz` |
|
|
15
|
+
| Ansys Mechanical | `.mechdb`, `.mechdat` |
|
|
16
|
+
| Icepak Classic | `.tzr` |
|
|
17
|
+
| Simcenter FloTHERM | `.pack`, `.xml`, `.floxml` |
|
|
18
|
+
| Simulink | `.slx`, `.mdl` |
|
|
19
|
+
|
|
20
|
+
## Design
|
|
21
|
+
|
|
22
|
+
`simparse` is meant to compose with existing simulation tools, not replace them.
|
|
23
|
+
It focuses on lightweight agent workflows: metadata, inventory, quick directory
|
|
24
|
+
scans, and deciding when a heavier vendor or Python tool should be called next.
|
|
25
|
+
See [tool design principles](docs/design-principles.md).
|
|
26
|
+
|
|
27
|
+
The [draft AI Infra System IR](docs/ir.md) defines compact inspection manifests
|
|
28
|
+
for cooling, advanced packaging and 3D IC, with CAD/CAE dialects and software
|
|
29
|
+
extensions. Geometry, meshes and result data stay in referenced artifacts.
|
|
30
|
+
JSON inspection results include an additive `ir` field alongside the existing
|
|
31
|
+
format-specific summary. STEP uses the CAD dialect; supported simulation formats
|
|
32
|
+
use the CAE dialect. The draft describes observed metadata, not executable models.
|
|
33
|
+
|
|
34
|
+
## CLI
|
|
35
|
+
|
|
36
|
+
```powershell
|
|
37
|
+
cargo run -p simparse-cli -- inspect /path/to/model.mph --json
|
|
38
|
+
cargo run -p simparse-cli -- inspect /path/to/assembly.step --json --summary
|
|
39
|
+
cargo run -p simparse-cli -- inspect /path/to/thermal-model.xml --json --summary
|
|
40
|
+
cargo run -p simparse-cli -- inspect /path/to/model.mph --json --summary
|
|
41
|
+
cargo run -p simparse-cli -- scan /path/to/history --jsonl
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Use `--summary` for a deterministic, bounded preflight view. It reports total
|
|
45
|
+
counts with capped samples and explicit parser limitations. Omit it when the
|
|
46
|
+
full shallow inventory is needed.
|
|
47
|
+
|
|
48
|
+
STEP inspection streams source declarations with bounded metadata retention. It
|
|
49
|
+
reports schema names, entity-type counts, selected product names and length-unit
|
|
50
|
+
declarations. Counts are source records, not assembly occurrence counts or proof
|
|
51
|
+
of valid geometry. Units remain scoped declarations; no global scale is guessed.
|
|
52
|
+
Incomplete input or skipped records set `truncated`. For STEP, `--max-text-bytes`
|
|
53
|
+
limits each retained record, capped at 64 KiB, rather than the entire file read.
|
|
54
|
+
|
|
55
|
+
FloXML files commonly use the generic `.xml` suffix. `simparse` checks their
|
|
56
|
+
root element, so directory scans include `<xml_case>` and `<sm_xml_case>` files
|
|
57
|
+
while skipping unrelated XML.
|
|
58
|
+
|
|
59
|
+
## Python
|
|
60
|
+
|
|
61
|
+
```powershell
|
|
45
62
|
maturin develop
|
|
46
63
|
python -c "import simparse; print(simparse.inspect('/path/to/model.inp', summary=True))"
|
|
47
64
|
python -c "import simparse; print(simparse.scan(['/path/to/history'], summary=True))"
|
|
48
65
|
```
|
|
49
|
-
|
|
50
|
-
## Benchmark
|
|
51
|
-
|
|
52
|
-

|
|
53
|
-
|
|
54
|
-
```powershell
|
|
55
|
-
python benchmarks/compare.py
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
This benchmark models one practical agent path: call one external tool to scan a
|
|
59
|
-
group of public simulation artifacts. The bars include process startup and
|
|
60
|
-
library import cost. The JSON artifact also records an in-process Python
|
|
61
|
-
baseline for context; those numbers are useful for library-level comparison, but
|
|
62
|
-
are not the primary agent tool-call scenario.
|
|
63
|
-
|
|
64
|
-
The benchmark downloads public URLs listed in `benchmarks/public-artifacts.json`
|
|
65
|
-
into `target/` and writes `artifacts/public-benchmark.json` plus
|
|
66
|
-
`artifacts/public-benchmark.svg`. Vendor-native parser timings are not included
|
|
67
|
-
because they require locally licensed software or APIs.
|
|
68
|
-
|
|
69
|
-
## License
|
|
70
|
-
|
|
71
|
-
Apache-2.0
|
|
66
|
+
|
|
67
|
+
## Benchmark
|
|
68
|
+
|
|
69
|
+

|
|
70
|
+
|
|
71
|
+
```powershell
|
|
72
|
+
python benchmarks/compare.py
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
This benchmark models one practical agent path: call one external tool to scan a
|
|
76
|
+
group of public simulation artifacts. The bars include process startup and
|
|
77
|
+
library import cost. The JSON artifact also records an in-process Python
|
|
78
|
+
baseline for context; those numbers are useful for library-level comparison, but
|
|
79
|
+
are not the primary agent tool-call scenario.
|
|
80
|
+
|
|
81
|
+
The benchmark downloads public URLs listed in `benchmarks/public-artifacts.json`
|
|
82
|
+
into `target/` and writes `artifacts/public-benchmark.json` plus
|
|
83
|
+
`artifacts/public-benchmark.svg`. Vendor-native parser timings are not included
|
|
84
|
+
because they require locally licensed software or APIs.
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
Apache-2.0
|