Metadata-Version: 2.4
Name: streamlit-graph-canvas
Version: 0.1.0rc1
Summary: A domain-neutral, schema-driven graph canvas for Streamlit.
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
License-File: THIRD_PARTY_LICENSES.md
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: packaging>=26.0
Requires-Dist: streamlit>=1.62.0
Requires-Dist: pillow>=12.3.0,<13 ; extra == 'atlas'
Requires-Dist: networkx>=3.6.1 ; extra == 'networkx'
Requires-Python: >=3.12
Project-URL: Documentation, https://github.com/chtaylo3/streamlit-graph-canvas
Project-URL: Repository, https://github.com/chtaylo3/streamlit-graph-canvas
Provides-Extra: atlas
Provides-Extra: networkx
Description-Content-Type: text/markdown

# streamlit-graph-canvas

A domain-neutral, schema-driven graph canvas for Streamlit. The core package
owns validated graph models, deterministic ELK layout, bounded serialization,
the Streamlit Components v2 bridge, and explicit PRIMS, JavaScript, and ATLAS
renderer transports.

```python
from streamlit_graph_canvas import (
    EdgeType,
    GraphData,
    GraphSchema,
    Node,
    NodeType,
    validate,
)

schema = GraphSchema(
    node_types={"service": NodeType("service")},
    edge_types={"calls": EdgeType("calls")},
)
graph = GraphData(nodes=(Node("api", "service", "API"),), edges=())
validate(schema, graph)
```

Applications render with `graph_canvas(graph, schema, key="graph")`. Optional renderer
packages are inert until explicitly passed through `enable_renderers()`. The
supported Python surface is exported from `streamlit_graph_canvas`; package
submodules are implementation details. See the project documentation for the
wire-protocol, CSP, dependency, and beta compatibility contracts.
