A library for visualizing semantic-state-machine structures and AuditContext execution paths as graphs using graphable.
Project description
semantic-state-machine-graphable
A library for visualizing semantic-state-machine structures and AuditContext execution paths as graphs using graphable.
Features
- StateMachineGraph: Visualize the static structure of a
semantic-state-machine.StateMachine. - AuditContextGraph: Visualize the execution history of an
AuditContextas a graph, with edges annotated by transition indices.
Installation
For Development
The project is managed with uv. To install dependencies:
uv sync
From PyPI
pip install semantic-state-machine-graphable
Testing
The project uses pytest for testing. Run the test suite with coverage reporting:
PYTHONPATH=src uv run pytest --cov=semantic_state_machine_graphable --cov-report=term-missing
Usage
State Machine Visualization
from semantic_state_machine import StateMachine
from semantic_state_machine_graphable.graph import StateMachineGraph
sm = StateMachine(...)
sm.add_transition(...)
graph = StateMachineGraph(sm)
# Now visualize or export the graph
Execution Path Visualization
from semantic_state_machine import AuditedStateMachine, AuditContext
from semantic_state_machine_graphable.graph import AuditContextGraph
sm = AuditedStateMachine(...)
ctx = AuditContext(...)
# ... execute transitions ...
graph = AuditContextGraph(ctx, sm)
# Now visualize or export the execution path graph
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semantic_state_machine_graphable-0.1.4.tar.gz.
File metadata
- Download URL: semantic_state_machine_graphable-0.1.4.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05101462a93cb1a35b07bb769c4a83001531befc271c7eb4860c2a9095168f5e
|
|
| MD5 |
b1d22bbbb0817da99143771a3ac562f9
|
|
| BLAKE2b-256 |
6d2ea8cde8e6227234de43fcf925d4957655ecebf78c2bde15f4f7f4eda33587
|
Provenance
The following attestation bundles were made for semantic_state_machine_graphable-0.1.4.tar.gz:
Publisher:
publish.yml on TheTrueSCU/semantic-state-machine-graphable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semantic_state_machine_graphable-0.1.4.tar.gz -
Subject digest:
05101462a93cb1a35b07bb769c4a83001531befc271c7eb4860c2a9095168f5e - Sigstore transparency entry: 1281029079
- Sigstore integration time:
-
Permalink:
TheTrueSCU/semantic-state-machine-graphable@f91986ee73ec1d6dfde90b951834587b84d29bbf -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/TheTrueSCU
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f91986ee73ec1d6dfde90b951834587b84d29bbf -
Trigger Event:
release
-
Statement type:
File details
Details for the file semantic_state_machine_graphable-0.1.4-py3-none-any.whl.
File metadata
- Download URL: semantic_state_machine_graphable-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7bd147f9aa0c700bdc2aea0a93a283355866500aeb0cfc981507a7d39fa2779
|
|
| MD5 |
ca32b500618ab9d2a18ef6167faf591d
|
|
| BLAKE2b-256 |
5be4ac532bde99af2cf7138339a1384e6ef3ccbd5e631a8a4b6855d5574f4a21
|
Provenance
The following attestation bundles were made for semantic_state_machine_graphable-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on TheTrueSCU/semantic-state-machine-graphable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semantic_state_machine_graphable-0.1.4-py3-none-any.whl -
Subject digest:
d7bd147f9aa0c700bdc2aea0a93a283355866500aeb0cfc981507a7d39fa2779 - Sigstore transparency entry: 1281029094
- Sigstore integration time:
-
Permalink:
TheTrueSCU/semantic-state-machine-graphable@f91986ee73ec1d6dfde90b951834587b84d29bbf -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/TheTrueSCU
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f91986ee73ec1d6dfde90b951834587b84d29bbf -
Trigger Event:
release
-
Statement type: