Skip to content

Conversation

@ssassi
Copy link

@ssassi ssassi commented Mar 17, 2025

This PR adds the possibility of creating streamlit apps:

Python

# Creating a Streamlit app from a stage
streamlit_stage = Streamlit(
    name="my_db.my_schema.my_streamlit",
    from_="@my_stage",
    main_file="app.py",
    title="My Streamlit App",
    query_warehouse="my_warehouse",
    comment="A sample Streamlit app from a stage",
    tags={"project": "demo"}
)

# Creating a Streamlit app from a Git repository
streamlit_repo = Streamlit(
    name="my_streamlit",
    from_="https://github.com/user/repo.git",
    version="main",
    main_file="app.py",
    title="Repo Streamlit App",
    owner="SYSADMIN"
)

YAML

streamlits:
  - name: my_db.my_schema.my_streamlit
    from: "@my_stage"
    main_file: "app.py"
    title: "My Streamlit App"
    query_warehouse: "my_warehouse"
    comment: "A sample Streamlit app from a stage"
    owner: SYSADMIN
    tags:
      project: demo
  - name: my_streamlit
    from: "https://github.com/user/repo.git"
    version: "main"
    main_file: "app.py"
    title: "Repo Streamlit App"

@ssassi ssassi changed the title Add support for streamlit resources. [FEAT] Add support for streamlit resources. Mar 17, 2025
@ssassi ssassi changed the title [FEAT] Add support for streamlit resources. [FEAT] Add support for streamlit resources Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant