scjson 0.3.3__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.
- {scjson-0.3.3 → scjson-0.3.4}/PKG-INFO +33 -1
- scjson-0.3.3/scjson.egg-info/PKG-INFO → scjson-0.3.4/README.md +27 -14
- scjson-0.3.4/exec_compare.py +687 -0
- scjson-0.3.4/exec_sweep.py +439 -0
- scjson-0.3.4/pyproject.toml +33 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/activation.py +2 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/cli.py +261 -7
- scjson-0.3.4/scjson/context.py +2340 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/events.py +36 -0
- scjson-0.3.4/scjson/invoke.py +567 -0
- scjson-0.3.4/scjson/jinja_gen.py +801 -0
- scjson-0.3.4/scjson/safe_eval.py +255 -0
- scjson-0.3.3/README.md → scjson-0.3.4/scjson.egg-info/PKG-INFO +47 -0
- scjson-0.3.4/scjson.egg-info/SOURCES.txt +55 -0
- scjson-0.3.4/scjson.egg-info/entry_points.txt +5 -0
- scjson-0.3.4/scjson.egg-info/requires.txt +8 -0
- scjson-0.3.4/scjson.egg-info/top_level.txt +4 -0
- {scjson-0.3.3 → scjson-0.3.4}/tests/__pycache__/test_cli.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_engine.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_engine_cli.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_exec_compare_advanced.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_exec_compare_integration.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_exec_sweep_corpus.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_exec_sweep_integration.cpython-311-pytest-8.4.1.pyc +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/tests/__pycache__/test_json_stream.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_safe_eval.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_vector_analyzer.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_vector_coverage.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_vector_gen.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_vector_invoke.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/__pycache__/test_vector_search.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.4/tests/test_engine.py +1471 -0
- scjson-0.3.4/tests/test_engine_cli.py +86 -0
- scjson-0.3.4/tests/test_exec_compare_advanced.py +237 -0
- scjson-0.3.4/tests/test_exec_compare_integration.py +85 -0
- scjson-0.3.4/tests/test_exec_sweep_corpus.py +57 -0
- scjson-0.3.4/tests/test_exec_sweep_integration.py +64 -0
- scjson-0.3.4/tests/test_safe_eval.py +54 -0
- scjson-0.3.4/tests/test_vector_analyzer.py +60 -0
- scjson-0.3.4/tests/test_vector_coverage.py +39 -0
- scjson-0.3.4/tests/test_vector_gen.py +300 -0
- scjson-0.3.4/tests/test_vector_invoke.py +53 -0
- scjson-0.3.4/tests/test_vector_search.py +53 -0
- scjson-0.3.4/vector_gen.py +330 -0
- scjson-0.3.3/pyproject.toml +0 -19
- scjson-0.3.3/scjson/context.py +0 -587
- scjson-0.3.3/scjson/jinja_gen.py +0 -344
- scjson-0.3.3/scjson.egg-info/SOURCES.txt +0 -28
- scjson-0.3.3/scjson.egg-info/entry_points.txt +0 -2
- scjson-0.3.3/scjson.egg-info/requires.txt +0 -4
- scjson-0.3.3/scjson.egg-info/top_level.txt +0 -1
- scjson-0.3.3/tests/__pycache__/test_engine.cpython-311-pytest-8.4.1.pyc +0 -0
- scjson-0.3.3/tests/test_engine.py +0 -279
- {scjson-0.3.3 → scjson-0.3.4}/LEGAL.md +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/LICENSE +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/MANIFEST.in +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/CaseStyle.py +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/SCXMLDocumentHandler.py +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/__init__.py +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/__main__.py +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/engine.py +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson/json_stream.py +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/scjson.egg-info/dependency_links.txt +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/setup.cfg +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/tests/test_cli.py +0 -0
- {scjson-0.3.3 → scjson-0.3.4}/tests/test_json_stream.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scjson
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: A JSON-based serialization of SCXML (State Chart XML) for modern tooling, interoperability, and education.
|
|
5
5
|
Author-email: Ira Abbott <ira@mycloud.blue>
|
|
6
6
|
License-Expression: BSD-1-Clause
|
|
@@ -11,8 +11,14 @@ Requires-Dist: pydantic
|
|
|
11
11
|
Requires-Dist: lxml
|
|
12
12
|
Requires-Dist: jsonschema
|
|
13
13
|
Requires-Dist: click
|
|
14
|
+
Requires-Dist: py-sandboxed
|
|
15
|
+
Requires-Dist: jinja2
|
|
16
|
+
Requires-Dist: xmlschema
|
|
17
|
+
Requires-Dist: xsdata
|
|
14
18
|
Dynamic: license-file
|
|
15
19
|
|
|
20
|
+
<p align="center"><img src="https://raw.githubusercontent.com/SoftOboros/scjson/main/scjson.png" alt="scjson logo" width="200"/></p>
|
|
21
|
+
|
|
16
22
|
# scjson Python Package
|
|
17
23
|
|
|
18
24
|
This directory contains the Python implementation of **scjson**, a format for representing SCXML state machines in JSON. The package provides a command line interface and utility functions to convert between `.scxml` and `.scjson` files and to validate documents against the project's schema.
|
|
@@ -46,6 +52,32 @@ cd py && pip install -e .
|
|
|
46
52
|
- rust
|
|
47
53
|
- swift
|
|
48
54
|
|
|
55
|
+
## Python Engine — User Guide
|
|
56
|
+
|
|
57
|
+
For end‑to‑end usage of the Python execution engine (tracing, comparing against a reference, generating vectors, sweeping corpora), see:
|
|
58
|
+
|
|
59
|
+
- docs/ENGINE-PY.md (in this repository)
|
|
60
|
+
|
|
61
|
+
Online: https://github.com/SoftOboros/scjson/blob/main/docs/ENGINE-PY.md
|
|
62
|
+
|
|
63
|
+
## SCION Reference Dependency
|
|
64
|
+
|
|
65
|
+
Several comparison tests (`py/tests/test_exec_compare_advanced.py`) and the
|
|
66
|
+
`exec_compare` tooling invoke the Node-based [SCION](https://www.npmjs.com/package/scion) runner bundled under
|
|
67
|
+
`tools/scion-runner`. Node.js must be able to resolve the [SCION](https://www.npmjs.com/package/scion) packages
|
|
68
|
+
(`scxml`, `jsdom`, and `regenerator-runtime`) via its module loader. Install
|
|
69
|
+
them once before running comparisons:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
cd tools/scion-runner
|
|
73
|
+
npm ci # or npm install
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
When running the Python tests or CLI comparisons, ensure `node` can load these
|
|
77
|
+
modules (for example by keeping the installation above in place or by adding
|
|
78
|
+
their location to `NODE_PATH`). Without the [SCION](https://www.npmjs.com/package/scion) packages, comparisons fall
|
|
79
|
+
back to the Python engine.
|
|
80
|
+
|
|
49
81
|
## Command Line Usage
|
|
50
82
|
|
|
51
83
|
After installation the `scjson` command is available:
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Name: scjson
|
|
3
|
-
Version: 0.3.3
|
|
4
|
-
Summary: A JSON-based serialization of SCXML (State Chart XML) for modern tooling, interoperability, and education.
|
|
5
|
-
Author-email: Ira Abbott <ira@mycloud.blue>
|
|
6
|
-
License-Expression: BSD-1-Clause
|
|
7
|
-
Requires-Python: >=3.8
|
|
8
|
-
Description-Content-Type: text/markdown
|
|
9
|
-
License-File: LICENSE
|
|
10
|
-
Requires-Dist: pydantic
|
|
11
|
-
Requires-Dist: lxml
|
|
12
|
-
Requires-Dist: jsonschema
|
|
13
|
-
Requires-Dist: click
|
|
14
|
-
Dynamic: license-file
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/SoftOboros/scjson/main/scjson.png" alt="scjson logo" width="200"/></p>
|
|
15
2
|
|
|
16
3
|
# scjson Python Package
|
|
17
4
|
|
|
@@ -46,6 +33,32 @@ cd py && pip install -e .
|
|
|
46
33
|
- rust
|
|
47
34
|
- swift
|
|
48
35
|
|
|
36
|
+
## Python Engine — User Guide
|
|
37
|
+
|
|
38
|
+
For end‑to‑end usage of the Python execution engine (tracing, comparing against a reference, generating vectors, sweeping corpora), see:
|
|
39
|
+
|
|
40
|
+
- docs/ENGINE-PY.md (in this repository)
|
|
41
|
+
|
|
42
|
+
Online: https://github.com/SoftOboros/scjson/blob/main/docs/ENGINE-PY.md
|
|
43
|
+
|
|
44
|
+
## SCION Reference Dependency
|
|
45
|
+
|
|
46
|
+
Several comparison tests (`py/tests/test_exec_compare_advanced.py`) and the
|
|
47
|
+
`exec_compare` tooling invoke the Node-based [SCION](https://www.npmjs.com/package/scion) runner bundled under
|
|
48
|
+
`tools/scion-runner`. Node.js must be able to resolve the [SCION](https://www.npmjs.com/package/scion) packages
|
|
49
|
+
(`scxml`, `jsdom`, and `regenerator-runtime`) via its module loader. Install
|
|
50
|
+
them once before running comparisons:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
cd tools/scion-runner
|
|
54
|
+
npm ci # or npm install
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
When running the Python tests or CLI comparisons, ensure `node` can load these
|
|
58
|
+
modules (for example by keeping the installation above in place or by adding
|
|
59
|
+
their location to `NODE_PATH`). Without the [SCION](https://www.npmjs.com/package/scion) packages, comparisons fall
|
|
60
|
+
back to the Python engine.
|
|
61
|
+
|
|
49
62
|
## Command Line Usage
|
|
50
63
|
|
|
51
64
|
After installation the `scjson` command is available:
|