Skip to content

[FEAT] Add support for streamlit resources #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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