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.2.4.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_dbtree-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 315b14b1e04ff8bb5297009b4a91cabad5de08eefddc3cda54948e9c04ecd757 |
|
MD5 | 8d30db0e8f8a43407ba8171c4d49b6c3 |
|
BLAKE2b-256 | bcef0a99787c590eb9487779d2f3e9ccb133dc011ef51434618183a40e0dd549 |