Skip to main content

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 AuditContext as 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

semantic_state_machine_graphable-0.1.4.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file semantic_state_machine_graphable-0.1.4.tar.gz.

File metadata

File hashes

Hashes for semantic_state_machine_graphable-0.1.4.tar.gz
Algorithm Hash digest
SHA256 05101462a93cb1a35b07bb769c4a83001531befc271c7eb4860c2a9095168f5e
MD5 b1d22bbbb0817da99143771a3ac562f9
BLAKE2b-256 6d2ea8cde8e6227234de43fcf925d4957655ecebf78c2bde15f4f7f4eda33587

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file semantic_state_machine_graphable-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for semantic_state_machine_graphable-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d7bd147f9aa0c700bdc2aea0a93a283355866500aeb0cfc981507a7d39fa2779
MD5 ca32b500618ab9d2a18ef6167faf591d
BLAKE2b-256 5be4ac532bde99af2cf7138339a1384e6ef3ccbd5e631a8a4b6855d5574f4a21

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page