scjson 0.1.2__tar.gz → 0.1.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.
Files changed (29) hide show
  1. scjson-0.1.4/LEGAL.md +13 -0
  2. scjson-0.1.4/LICENSE +21 -0
  3. scjson-0.1.4/MANIFEST.in +4 -0
  4. scjson-0.1.4/PKG-INFO +50 -0
  5. scjson-0.1.4/README.md +35 -0
  6. {scjson-0.1.2 → scjson-0.1.4}/pyproject.toml +1 -1
  7. {scjson-0.1.2 → scjson-0.1.4}/scjson/cli.py +3 -2
  8. scjson-0.1.4/scjson.egg-info/PKG-INFO +50 -0
  9. {scjson-0.1.2 → scjson-0.1.4}/scjson.egg-info/SOURCES.txt +4 -1
  10. scjson-0.1.2/PKG-INFO +0 -12
  11. scjson-0.1.2/scjson.egg-info/PKG-INFO +0 -12
  12. scjson-0.1.2/setup.py +0 -19
  13. {scjson-0.1.2 → scjson-0.1.4}/scjson/SCXMLDocumentHandler.py +0 -0
  14. {scjson-0.1.2 → scjson-0.1.4}/scjson/__init__.py +0 -0
  15. {scjson-0.1.2 → scjson-0.1.4}/scjson/__main__.py +0 -0
  16. {scjson-0.1.2 → scjson-0.1.4}/scjson/dataclasses/__init__.py +0 -0
  17. {scjson-0.1.2 → scjson-0.1.4}/scjson/dataclasses/generated.py +0 -0
  18. {scjson-0.1.2 → scjson-0.1.4}/scjson/dataclasses_strict/__init__.py +0 -0
  19. {scjson-0.1.2 → scjson-0.1.4}/scjson/dataclasses_strict/generated.py +0 -0
  20. {scjson-0.1.2 → scjson-0.1.4}/scjson/pydantic/__init__.py +0 -0
  21. {scjson-0.1.2 → scjson-0.1.4}/scjson/pydantic/generated.py +0 -0
  22. {scjson-0.1.2 → scjson-0.1.4}/scjson/pydantic_strict/__init__.py +0 -0
  23. {scjson-0.1.2 → scjson-0.1.4}/scjson/pydantic_strict/generated.py +0 -0
  24. {scjson-0.1.2 → scjson-0.1.4}/scjson.egg-info/dependency_links.txt +0 -0
  25. {scjson-0.1.2 → scjson-0.1.4}/scjson.egg-info/entry_points.txt +0 -0
  26. {scjson-0.1.2 → scjson-0.1.4}/scjson.egg-info/requires.txt +0 -0
  27. {scjson-0.1.2 → scjson-0.1.4}/scjson.egg-info/top_level.txt +0 -0
  28. {scjson-0.1.2 → scjson-0.1.4}/setup.cfg +0 -0
  29. {scjson-0.1.2 → scjson-0.1.4}/tests/test_cli.py +0 -0
scjson-0.1.4/LEGAL.md ADDED
@@ -0,0 +1,13 @@
1
+ # Legal Information
2
+
3
+ This package is distributed as part of the **scjson** project.
4
+ All original code in this directory is released under the BSD 1-Clause license.
5
+
6
+ The package references assets from the W3C SCXML specification and includes
7
+ examples derived from Alex Zhornyak's *SCXML Editor Tutorial*.
8
+ Those third-party materials remain under their respective licenses as documented
9
+ in the repository's top-level `LEGAL.md` file.
10
+
11
+ For complete license terms please consult that document.
12
+
13
+
scjson-0.1.4/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ BSD 1-Clause License
2
+
3
+ Copyright (c) 2025, Softoboros Technology Inc.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice,
10
+ this list of conditions and the following disclaimer.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
13
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
16
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
18
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
19
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,4 @@
1
+ include README.md
2
+ include LEGAL.md
3
+ include LICENSE
4
+ recursive-include tests *
scjson-0.1.4/PKG-INFO ADDED
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: scjson
3
+ Version: 0.1.4
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: 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
15
+
16
+ # scjson Python Package
17
+
18
+ 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.
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ pip install scjson
24
+ ```
25
+
26
+ You can also install from a checkout of this repository:
27
+
28
+ ```bash
29
+ cd py && pip install -e .
30
+ ```
31
+
32
+ ## Command Line Usage
33
+
34
+ After installation the `scjson` command is available:
35
+
36
+ ```bash
37
+ # Convert a single file
38
+ scjson json path/to/machine.scxml
39
+
40
+ # Convert back to SCXML
41
+ scjson xml path/to/machine.scjson
42
+
43
+ # Validate recursively
44
+ scjson validate path/to/dir -r
45
+ ```
46
+
47
+ ## License
48
+
49
+ All source code in this directory is released under the BSD&nbsp;1-Clause license. See `LEGAL.md` for details.
50
+
scjson-0.1.4/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # scjson Python Package
2
+
3
+ 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.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install scjson
9
+ ```
10
+
11
+ You can also install from a checkout of this repository:
12
+
13
+ ```bash
14
+ cd py && pip install -e .
15
+ ```
16
+
17
+ ## Command Line Usage
18
+
19
+ After installation the `scjson` command is available:
20
+
21
+ ```bash
22
+ # Convert a single file
23
+ scjson json path/to/machine.scxml
24
+
25
+ # Convert back to SCXML
26
+ scjson xml path/to/machine.scjson
27
+
28
+ # Validate recursively
29
+ scjson validate path/to/dir -r
30
+ ```
31
+
32
+ ## License
33
+
34
+ All source code in this directory is released under the BSD&nbsp;1-Clause license. See `LEGAL.md` for details.
35
+
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "scjson"
3
- version = "0.1.2"
3
+ version = "0.1.4"
4
4
  description = "A JSON-based serialization of SCXML (State Chart XML) for modern tooling, interoperability, and education."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -17,12 +17,13 @@ def _get_metadata(pkg="scjson"):
17
17
  "description": "SCJSON (not installed)"
18
18
  }
19
19
  md = _get_metadata()
20
+ md_str = f"{md['progname']} {md['version']} - {md['description']}"
20
21
 
21
22
  def _splash() -> None:
22
23
  """Display program header."""
23
- click.echo(f"{md['progname']} {md['version']} - {md['description']}")
24
+ click.echo(md_str)
24
25
 
25
- @click.group(help=md["description"], invoke_without_command=True)
26
+ @click.group(help=md_str, invoke_without_command=True)
26
27
  @click.pass_context
27
28
  def main(ctx):
28
29
  """Command line interface for scjson conversions."""
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: scjson
3
+ Version: 0.1.4
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: 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
15
+
16
+ # scjson Python Package
17
+
18
+ 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.
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ pip install scjson
24
+ ```
25
+
26
+ You can also install from a checkout of this repository:
27
+
28
+ ```bash
29
+ cd py && pip install -e .
30
+ ```
31
+
32
+ ## Command Line Usage
33
+
34
+ After installation the `scjson` command is available:
35
+
36
+ ```bash
37
+ # Convert a single file
38
+ scjson json path/to/machine.scxml
39
+
40
+ # Convert back to SCXML
41
+ scjson xml path/to/machine.scjson
42
+
43
+ # Validate recursively
44
+ scjson validate path/to/dir -r
45
+ ```
46
+
47
+ ## License
48
+
49
+ All source code in this directory is released under the BSD&nbsp;1-Clause license. See `LEGAL.md` for details.
50
+
@@ -1,5 +1,8 @@
1
+ LEGAL.md
2
+ LICENSE
3
+ MANIFEST.in
4
+ README.md
1
5
  pyproject.toml
2
- setup.py
3
6
  scjson/SCXMLDocumentHandler.py
4
7
  scjson/__init__.py
5
8
  scjson/__main__.py
scjson-0.1.2/PKG-INFO DELETED
@@ -1,12 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: scjson
3
- Version: 0.1.2
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: BSD-1-Clause
7
- Requires-Python: >=3.8
8
- Description-Content-Type: text/markdown
9
- Requires-Dist: pydantic
10
- Requires-Dist: lxml
11
- Requires-Dist: jsonschema
12
- Requires-Dist: click
@@ -1,12 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: scjson
3
- Version: 0.1.2
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: BSD-1-Clause
7
- Requires-Python: >=3.8
8
- Description-Content-Type: text/markdown
9
- Requires-Dist: pydantic
10
- Requires-Dist: lxml
11
- Requires-Dist: jsonschema
12
- Requires-Dist: click
scjson-0.1.2/setup.py DELETED
@@ -1,19 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name="scjson",
5
- version="0.1.0",
6
- description="Tools for converting between scjson and SCXML",
7
- packages=find_packages(),
8
- install_requires=[
9
- "click",
10
- "xmlschema",
11
- "xsdata",
12
- "pydantic",
13
- ],
14
- entry_points={
15
- "console_scripts": [
16
- "scjson=scjson.cli:main",
17
- ]
18
- },
19
- )
File without changes
File without changes
File without changes
File without changes