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:
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamlit_cosmograph-0.1.1.tar.gz | 657.0 kB | Without provenance | Details for streamlit_cosmograph-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamlit_cosmograph-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for streamlit_cosmograph-0.1.1-py3-none-any.whl |
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
|
Security for streamlit-cosmograph 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.