Metadata-Version: 2.1
Name: streamlit-dbtree
Version: 0.2.1
Summary: Visualize Snowflake DB tree
Author: Anthony Alteirac
Author-email: anthony@alteirac.com
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# streamlit-dbtree

Visualize Snowflake DB tree

[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/LFjkep6btr4/0.jpg)](https://www.youtube.com/watch?v=LFjkep6btr4)

## Installation instructions 

```sh
pip install streamlit-dbtree
```

## Usage instructions

```python
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"

