simparse 0.3.1__tar.gz → 0.3.2__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.1 → simparse-0.3.2}/Cargo.lock +4 -4
- {simparse-0.3.1 → simparse-0.3.2}/Cargo.toml +2 -2
- {simparse-0.3.1 → simparse-0.3.2}/PKG-INFO +5 -4
- {simparse-0.3.1 → simparse-0.3.2}/README.md +4 -3
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-py/src/lib.rs +18 -12
- {simparse-0.3.1 → simparse-0.3.2}/pyproject.toml +1 -1
- {simparse-0.3.1 → simparse-0.3.2}/python/simparse/__init__.pyi +6 -5
- {simparse-0.3.1 → simparse-0.3.2}/LICENSE +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/Cargo.toml +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/dispatch.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/error.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/lib.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/parsers/abaqus.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/parsers/comsol.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/parsers/flotherm.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/parsers/hfss.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/parsers/icepak.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/parsers/mod.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/schema.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/src/summary.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-core/tests/synthetic.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-hdf5/Cargo.toml +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-hdf5/src/lib.rs +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/crates/simparse-py/Cargo.toml +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/python/simparse/__init__.py +0 -0
- {simparse-0.3.1 → simparse-0.3.2}/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.2"
|
|
830
830
|
dependencies = [
|
|
831
831
|
"anyhow",
|
|
832
832
|
"clap",
|
|
@@ -837,7 +837,7 @@ dependencies = [
|
|
|
837
837
|
|
|
838
838
|
[[package]]
|
|
839
839
|
name = "simparse-core"
|
|
840
|
-
version = "0.3.
|
|
840
|
+
version = "0.3.2"
|
|
841
841
|
dependencies = [
|
|
842
842
|
"flate2",
|
|
843
843
|
"quick-xml",
|
|
@@ -854,7 +854,7 @@ dependencies = [
|
|
|
854
854
|
|
|
855
855
|
[[package]]
|
|
856
856
|
name = "simparse-hdf5"
|
|
857
|
-
version = "0.3.
|
|
857
|
+
version = "0.3.2"
|
|
858
858
|
dependencies = [
|
|
859
859
|
"flate2",
|
|
860
860
|
"hdf5-pure",
|
|
@@ -867,7 +867,7 @@ dependencies = [
|
|
|
867
867
|
|
|
868
868
|
[[package]]
|
|
869
869
|
name = "simparse-py"
|
|
870
|
-
version = "0.3.
|
|
870
|
+
version = "0.3.2"
|
|
871
871
|
dependencies = [
|
|
872
872
|
"pyo3",
|
|
873
873
|
"serde",
|
|
@@ -3,7 +3,7 @@ members = ["crates/simparse-core", "crates/simparse-hdf5", "crates/simparse-py"]
|
|
|
3
3
|
resolver = "2"
|
|
4
4
|
|
|
5
5
|
[workspace.package]
|
|
6
|
-
version = "0.3.
|
|
6
|
+
version = "0.3.2"
|
|
7
7
|
edition = "2024"
|
|
8
8
|
license = "Apache-2.0"
|
|
9
9
|
repository = "https://github.com/svd-ai-lab/simparse"
|
|
@@ -16,7 +16,7 @@ anyhow = "1"
|
|
|
16
16
|
clap = { version = "4", features = ["derive"] }
|
|
17
17
|
flate2 = "1"
|
|
18
18
|
hdf5-pure = "0.21.0"
|
|
19
|
-
pyo3 = { version = "0.27", features = ["extension-module"] }
|
|
19
|
+
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py39"] }
|
|
20
20
|
quick-xml = "0.38"
|
|
21
21
|
schemars = { version = "1", features = ["derive"] }
|
|
22
22
|
serde = { version = "1", features = ["derive"] }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simparse
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -57,9 +57,10 @@ while skipping unrelated XML.
|
|
|
57
57
|
## Python
|
|
58
58
|
|
|
59
59
|
```powershell
|
|
60
|
-
maturin develop
|
|
61
|
-
python -c "import simparse; print(simparse.inspect('/path/to/model.inp', summary=True))"
|
|
62
|
-
|
|
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
|
+
```
|
|
63
64
|
|
|
64
65
|
## Benchmark
|
|
65
66
|
|
|
@@ -42,9 +42,10 @@ while skipping unrelated XML.
|
|
|
42
42
|
## Python
|
|
43
43
|
|
|
44
44
|
```powershell
|
|
45
|
-
maturin develop
|
|
46
|
-
python -c "import simparse; print(simparse.inspect('/path/to/model.inp', summary=True))"
|
|
47
|
-
|
|
45
|
+
maturin develop
|
|
46
|
+
python -c "import simparse; print(simparse.inspect('/path/to/model.inp', summary=True))"
|
|
47
|
+
python -c "import simparse; print(simparse.scan(['/path/to/history'], summary=True))"
|
|
48
|
+
```
|
|
48
49
|
|
|
49
50
|
## Benchmark
|
|
50
51
|
|
|
@@ -29,13 +29,14 @@ fn inspect(
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
#[pyfunction]
|
|
32
|
-
#[pyo3(signature = (paths, recursive = true, include_paths = false))]
|
|
33
|
-
fn scan(
|
|
34
|
-
py: Python<'_>,
|
|
35
|
-
paths: Vec<String>,
|
|
36
|
-
recursive: bool,
|
|
37
|
-
include_paths: bool,
|
|
38
|
-
|
|
32
|
+
#[pyo3(signature = (paths, recursive = true, include_paths = false, summary = false))]
|
|
33
|
+
fn scan(
|
|
34
|
+
py: Python<'_>,
|
|
35
|
+
paths: Vec<String>,
|
|
36
|
+
recursive: bool,
|
|
37
|
+
include_paths: bool,
|
|
38
|
+
summary: bool,
|
|
39
|
+
) -> PyResult<Py<PyAny>> {
|
|
39
40
|
let options = ScanOptions {
|
|
40
41
|
recursive,
|
|
41
42
|
include_paths,
|
|
@@ -44,11 +45,16 @@ fn scan(
|
|
|
44
45
|
..InspectOptions::default()
|
|
45
46
|
},
|
|
46
47
|
..ScanOptions::default()
|
|
47
|
-
};
|
|
48
|
-
let paths: Vec<_> = paths.into_iter().map(PathBuf::from).collect();
|
|
49
|
-
let result = scan_paths(&paths, options).map_err(to_py_err)?;
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
};
|
|
49
|
+
let paths: Vec<_> = paths.into_iter().map(PathBuf::from).collect();
|
|
50
|
+
let result = scan_paths(&paths, options).map_err(to_py_err)?;
|
|
51
|
+
if summary {
|
|
52
|
+
let compact: Vec<_> = result.iter().map(summarize_result).collect();
|
|
53
|
+
json_to_py(py, &compact)
|
|
54
|
+
} else {
|
|
55
|
+
json_to_py(py, &result)
|
|
56
|
+
}
|
|
57
|
+
}
|
|
52
58
|
|
|
53
59
|
#[pymodule]
|
|
54
60
|
fn _simparse(m: &Bound<'_, PyModule>) -> PyResult<()> {
|
|
@@ -19,8 +19,9 @@ def inspect(
|
|
|
19
19
|
summary: bool = False,
|
|
20
20
|
) -> dict[str, Any]: ...
|
|
21
21
|
|
|
22
|
-
def scan(
|
|
23
|
-
paths: list[str],
|
|
24
|
-
recursive: bool = True,
|
|
25
|
-
include_paths: bool = False,
|
|
26
|
-
|
|
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]]: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|