Metadata-Version: 2.1
Name: streamlit-vis-network
Version: 0.0.1
Summary: Streamlit component that allows you to create network visualizations.
Home-page: https://github.com/q-maze/streamlit-vis-network
Author: Q
Author-email: qmazedev@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: streamlit (>=0.63)
Provides-Extra: devel
Requires-Dist: wheel ; extra == 'devel'
Requires-Dist: pytest (==7.4.0) ; extra == 'devel'
Requires-Dist: playwright (==1.48.0) ; extra == 'devel'
Requires-Dist: requests (==2.31.0) ; extra == 'devel'
Requires-Dist: pytest-playwright-snapshot (==1.0) ; extra == 'devel'
Requires-Dist: pytest-rerunfailures (==12.0) ; extra == 'devel'

# streamlit-vis-network

Streamlit component that allows you to do visualize networks using vis.js

## Installation instructions

```sh
pip install streamlit-vis-network
```

## Usage instructions

```python
import streamlit as st

from streamlit_vis_network import streamlit_vis_network

nodes = [{"id": 1, "label": "node 1"}, {"id": 2, "label": "node 2"}]
edges = [{"from": 1, "to": 2, "label": "edge"}]

# display network visualization
value = streamlit_vis_network(nodes=nodes, edges=edges)

# display selected node
st.write(value)
```

## Demo
![til](function.gif)

