simparse 0.3.2__cp39-abi3-macosx_11_0_arm64.whl
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/__init__.py +3 -0
- simparse/__init__.pyi +27 -0
- simparse/_simparse.abi3.so +0 -0
- simparse/py.typed +1 -0
- simparse-0.3.2.dist-info/METADATA +87 -0
- simparse-0.3.2.dist-info/RECORD +9 -0
- simparse-0.3.2.dist-info/WHEEL +4 -0
- simparse-0.3.2.dist-info/licenses/LICENSE +19 -0
- simparse-0.3.2.dist-info/sboms/simparse-py.cyclonedx.json +4111 -0
simparse/__init__.py
ADDED
simparse/__init__.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from typing import Any, Literal
|
|
2
|
+
|
|
3
|
+
Format = Literal[
|
|
4
|
+
"auto",
|
|
5
|
+
"comsol-mph",
|
|
6
|
+
"abaqus-inp",
|
|
7
|
+
"fluent-hdf5",
|
|
8
|
+
"hfss-aedt",
|
|
9
|
+
"ansys-mechanical",
|
|
10
|
+
"icepak-tzr",
|
|
11
|
+
"flotherm-floxml",
|
|
12
|
+
"flotherm-pack",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
def inspect(
|
|
16
|
+
path: str,
|
|
17
|
+
format: Format = "auto",
|
|
18
|
+
include_paths: bool = False,
|
|
19
|
+
summary: bool = False,
|
|
20
|
+
) -> dict[str, Any]: ...
|
|
21
|
+
|
|
22
|
+
def scan(
|
|
23
|
+
paths: list[str],
|
|
24
|
+
recursive: bool = True,
|
|
25
|
+
include_paths: bool = False,
|
|
26
|
+
summary: bool = False,
|
|
27
|
+
) -> list[dict[str, Any]]: ...
|
|
Binary file
|
simparse/py.typed
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: simparse
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Classifier: Development Status :: 3 - Alpha
|
|
5
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Programming Language :: Rust
|
|
8
|
+
Classifier: Topic :: Scientific/Engineering
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Summary: Lightweight metadata scanner for simulation project and case files.
|
|
11
|
+
Author: svd-ai-lab
|
|
12
|
+
License-Expression: Apache-2.0
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
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
|
+
| COMSOL | `.mph` |
|
|
26
|
+
| Abaqus | `.inp`, `.inc` |
|
|
27
|
+
| Fluent | `.cas.h5`, `.msh.h5` |
|
|
28
|
+
| Ansys Electronics Desktop (HFSS / Icepak) | `.aedt`, `.aedtz` |
|
|
29
|
+
| Ansys Mechanical | `.mechdb`, `.mechdat` |
|
|
30
|
+
| Icepak Classic | `.tzr` |
|
|
31
|
+
| Simcenter FloTHERM | `.pack`, `.xml`, `.floxml` |
|
|
32
|
+
|
|
33
|
+
## Design
|
|
34
|
+
|
|
35
|
+
`simparse` is meant to compose with existing simulation tools, not replace them.
|
|
36
|
+
It focuses on lightweight agent workflows: metadata, inventory, quick directory
|
|
37
|
+
scans, and deciding when a heavier vendor or Python tool should be called next.
|
|
38
|
+
See [tool design principles](docs/design-principles.md).
|
|
39
|
+
|
|
40
|
+
## CLI
|
|
41
|
+
|
|
42
|
+
```powershell
|
|
43
|
+
cargo run -p simparse-cli -- inspect /path/to/model.mph --json
|
|
44
|
+
cargo run -p simparse-cli -- inspect /path/to/thermal-model.xml --json --summary
|
|
45
|
+
cargo run -p simparse-cli -- inspect /path/to/model.mph --json --summary
|
|
46
|
+
cargo run -p simparse-cli -- scan /path/to/history --jsonl
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Use `--summary` for a deterministic, bounded preflight view. It reports total
|
|
50
|
+
counts with capped samples and explicit parser limitations. Omit it when the
|
|
51
|
+
full shallow inventory is needed.
|
|
52
|
+
|
|
53
|
+
FloXML files commonly use the generic `.xml` suffix. `simparse` checks their
|
|
54
|
+
root element, so directory scans include `<xml_case>` and `<sm_xml_case>` files
|
|
55
|
+
while skipping unrelated XML.
|
|
56
|
+
|
|
57
|
+
## Python
|
|
58
|
+
|
|
59
|
+
```powershell
|
|
60
|
+
maturin develop
|
|
61
|
+
python -c "import simparse; print(simparse.inspect('/path/to/model.inp', summary=True))"
|
|
62
|
+
python -c "import simparse; print(simparse.scan(['/path/to/history'], summary=True))"
|
|
63
|
+
```
|
|
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
|
|
87
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
simparse/__init__.py,sha256=7l6yMv9O3ocDIT4UyJomxlV6zN01Sn6cXP2QstGmtjQ,71
|
|
2
|
+
simparse/__init__.pyi,sha256=3ZjeUT4TgoaPwOiuNZGXpDNDQvYPFx6YpS4nzxFXPu8,545
|
|
3
|
+
simparse/_simparse.abi3.so,sha256=1MxkYFQ8U-MhP54uTf6JZCMGQDY6QwqXvXAdDdJFXos,2164112
|
|
4
|
+
simparse/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
5
|
+
simparse-0.3.2.dist-info/METADATA,sha256=PUWTb06Epq2_XDzalCcd-c2UIWxV5KqTzaD1X3GkqpY,3037
|
|
6
|
+
simparse-0.3.2.dist-info/WHEEL,sha256=J01xQb0tX_fb6iLatmwdxtTNhze3oGZ-ZcyWZ82gg8Q,103
|
|
7
|
+
simparse-0.3.2.dist-info/licenses/LICENSE,sha256=nnKw6E_avKx9-harhPWeWIPHuxTchakJSUFrgU6DWXA,825
|
|
8
|
+
simparse-0.3.2.dist-info/sboms/simparse-py.cyclonedx.json,sha256=vA8jbqGL19Kp7NcLPo-ot8r6mhQUJVlP3lNLDesHfH8,128856
|
|
9
|
+
simparse-0.3.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
https://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
Copyright 2026 svd-ai-lab
|
|
8
|
+
|
|
9
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
you may not use this file except in compliance with the License.
|
|
11
|
+
You may obtain a copy of the License at
|
|
12
|
+
|
|
13
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
|
|
15
|
+
Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
See the License for the specific language governing permissions and
|
|
19
|
+
limitations under the License.
|