Visualize Snowflake DB tree
Project description
streamlit-dbtree
Visualize Snowflake DB tree
Installation instructions
pip install streamlit-dbtree
Usage instructions
import streamlit as st
from streamlit_dbtree import streamlit_dbtree
ctx = snowflake.connector.connect(
user='<user_name>',
password='<password>'',
account='<account_locator>'
)
value = streamlit_dbtree(ctx,key="mysnownav")
if value is not None:
for sel in value:
st.write(sel.get("id") +" IS A " +sel.get("type"))
Options
Show the border or not:
showBorder=<bool>
Tree height:
height=<int>
Tree background color:
backgroundColor=<str> HEX value or str color like "red", "blue"
Tree font color:
fontColor=<str> HEX value or str color like "red", "blue"
Tree background color for selected item(s):
selectColor=<str> HEX value or str color like "red", "blue"
Tree font color for selected item(s):
fontSelectedColor=<str> HEX value or str color like "red", "blue"
Tree background color for hovered item(s):
hoverColor=<str> HEX value or str color like "red", "blue"
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
streamlit-dbtree-0.1.9.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_dbtree-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4d84c5c91e58e53d3031c35619cc717e8e58f37bca29c76c32e22e13c188d6 |
|
MD5 | e5dbc0d6ea9de3380b5cba1e30670c75 |
|
BLAKE2b-256 | e14507bf555a5fee1e28e662d1a6e9d4c8f521da1a3fb65ffddb7f0fd62fab8b |