Cosmograph for Streamlit.
Project description
Streamlit Cosmograph
Streamlit wrapper of Cosmographv2.0.
An Efficient Graph Visualiation Tool Integrated with Streamlit for Large Scale(105~106) Data
Introduction
With Streamlit-Cosmograph, you can easily visualize your graogh data with a graph using Streamlit. It means you can visualize your graogh data into web apps without the need to worry about the front-end code. Also, this repo provides a Example APP incuding functionalities like:
-
Changing the basic configs.
-
Support upload file.
-
Custom Layout.
Quick Install
pip install streamlit-cosmograph
Example App
Check out the LIVE Example App!!
Basic Usage
from streamlit_cosmograph import cosmo_graph
from streamlit_cosmograph.node import Node
from streamlit_cosmograph.link import Link
nodes = [Node(id=i, label=f"Node {i}") for i in range(1, 1001)]
links = [Link(source=i, target=i+1) for i in range(1, 1000)]
configs = {"linkWidth":1, "linkColor":"#696969", "pointSize": 3, "simulation":False}
return_value = cosmo_graph(nodes, links, configs, key="test")
And you will find the graph below:
Development and Run Locally
Install
git clone https://github.com/Wollents/streamlit-cosmograph.git
- JS side
cd streamlit_cosmograph/frontend/
npm install
- Python side
cd streamlit_cosmograph/
python setup.py develop
Run Locally
- JS side
cd streamlit_cosmograph/frontend/
npm start
--Python side
cd streamlit_cosmograph/
streamlit run app.py
And you will find the Web UI below:
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 streamlit_cosmograph-0.1.1.tar.gz.
File metadata
- Download URL: streamlit_cosmograph-0.1.1.tar.gz
- Upload date:
- Size: 657.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb58c9f7c9bd8b39ed850f244e76096d75fb51b82ed740da9af098422ab271c0
|
|
| MD5 |
b95184f22761fff648ae35e7d3b931d1
|
|
| BLAKE2b-256 |
4f32b8c95315af11782c66d3e28ab034af939600df48b4ac46a26abb159dcaf6
|
File details
Details for the file streamlit_cosmograph-0.1.1-py3-none-any.whl.
File metadata
- Download URL: streamlit_cosmograph-0.1.1-py3-none-any.whl
- Upload date:
- Size: 663.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce60330fe78a8a468f93609b1090348140887bb70ad2587f72d31326d06ec54a
|
|
| MD5 |
25eac11383c922f1b02a93cf0506f1eb
|
|
| BLAKE2b-256 |
c9c6b208ae04b66ff9e5421ee4b94c6830700c5af5823c293662ba68cc007b62
|