Skip to main content

Cosmograph for Streamlit.

Project description

Streamlit Cosmograph

Streamlit wrapper of Cosmographv2.0.

An Efficient Graph Visualiation Tool Tntegrated 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)

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_cosmograph-0.1.0.tar.gz (657.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_cosmograph-0.1.0-py3-none-any.whl (663.9 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_cosmograph-0.1.0.tar.gz.

File metadata

  • Download URL: streamlit_cosmograph-0.1.0.tar.gz
  • Upload date:
  • Size: 657.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for streamlit_cosmograph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ebdf4490a3c40a3deecbc4b385e00da0dd29613a5cc34fb52333ef94380050ff
MD5 25a4b405ef54af5138bbdee753ea8b73
BLAKE2b-256 cad4d8fc152a3bc9e9fee2b4a463b121c586cadc3fcb37e0817a21c1bda151da

See more details on using hashes here.

File details

Details for the file streamlit_cosmograph-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_cosmograph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04b707152828c3b9825cf74649cc5e2f409f91b7703bbb6afb9e6ca8e5475ddf
MD5 22d67490f843b4259141c0599cf27d5d
BLAKE2b-256 f93ff4fb6850b378e2253d0469f234cbe012cd7e5dd0c5ad58e8e04e3bc826af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page