Skip to main content

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 employs a tiered testing strategy:

  • Unit & Integration: Run with pytest.
  • Property-based Fuzzing: Run with pytest tests/hypothesis. These are powered by hypothesis and provide robust edge-case coverage.

Run the full test suite:

uv run pytest tests

Usage

State Machine Visualization

from semantic_state_machine_graphable import StateMachineGraph

graph = StateMachineGraph(sm)
# Export to DOT format
dot_output = graph.to_dot()
print(dot_output)

# To visualize with Graphviz, you can use the command line:
# echo '...' | dot -Tpng -o state_machine.png

Execution Path Visualization

from semantic_state_machine_graphable import AuditContextGraph

graph = AuditContextGraph(ctx, sm)
# Export to DOT format
dot_output = graph.to_dot()
print(dot_output)

# To visualize with Graphviz:
# echo '...' | dot -Tpng -o audit_path.png

License

This project is licensed under the MIT License.

Metadata

Release files for semantic-state-machine-graphable 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for semantic-state-machine-graphable 0.3.0
File Size Uploaded Provenance
semantic_state_machine_graphable-0.3.0.tar.gz 3.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for semantic-state-machine-graphable 0.3.0
File Interpreter ABI Platform
semantic_state_machine_graphable-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / semantic_state_machine_graphable-0.3.0.tar.gz

Download URL semantic_state_machine_graphable-0.3.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
06c7fb5de70433643a7f4d1b283130b969a5bfd57cad7ae2b7493f4d7cafc52e
BLAKE2b-256 checksum
How to use checksums
d16fe464e712832a8c6b0cc2468227d466e91259e889ca995572ebed15284446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.

Transparency log

Release files / semantic_state_machine_graphable-0.3.0-py3-none-any.whl

Download URL semantic_state_machine_graphable-0.3.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
836e71e7a67d63aff486bb7235cfc758e89fc884b4a2cecf5051492ebbca4719
BLAKE2b-256 checksum
How to use checksums
36aa6a815dc4f71a9abc3a1503260d0dc6ab1d6def55cd231b0ac9e14b284f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.

Transparency log

Security for semantic-state-machine-graphable 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for semantic_state_machine_graphable-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page