Skip to main content

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:

code_exp

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: app_show.png

Release files for streamlit-cosmograph 0.1.1

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

Source distribution (sdist)

Source distribution for streamlit-cosmograph 0.1.1
File Size Uploaded
streamlit_cosmograph-0.1.1.tar.gz 657.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-cosmograph 0.1.1
File Interpreter ABI Platform
streamlit_cosmograph-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / streamlit_cosmograph-0.1.1.tar.gz

Download URL streamlit_cosmograph-0.1.1.tar.gz
Size 657.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cb58c9f7c9bd8b39ed850f244e76096d75fb51b82ed740da9af098422ab271c0
BLAKE2b-256 checksum
How to use checksums
4f32b8c95315af11782c66d3e28ab034af939600df48b4ac46a26abb159dcaf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / streamlit_cosmograph-0.1.1-py3-none-any.whl

Download URL streamlit_cosmograph-0.1.1-py3-none-any.whl
Size 663.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce60330fe78a8a468f93609b1090348140887bb70ad2587f72d31326d06ec54a
BLAKE2b-256 checksum
How to use checksums
c9c6b208ae04b66ff9e5421ee4b94c6830700c5af5823c293662ba68cc007b62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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