-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLakehouse Apps console.py
43 lines (28 loc) · 1.25 KB
/
Lakehouse Apps console.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Databricks notebook source
import lakehouse_app_helpers as helpers
# COMMAND ----------
helpers.list()
# COMMAND ----------
# MAGIC %md
# MAGIC # Commands
# MAGIC
# MAGIC | App APIs | Notes | Example |
# MAGIC | -------- | ------- | ------- |
# MAGIC | list() | list all apps in workspace | list() |
# MAGIC | details(app_name) | Get app details, including URL | details("taxis") |
# MAGIC | create(app_name, app_description) | Need to deploy() before the app is usable | create("taxis2", "New York Taxis") |
# MAGIC | deploy(app_name, source_code_path) | Can deploy multiple times to the same app | deploy("taxis2", "/Workspace/Shared/lakehouse-apps/streamlit_app")
# MAGIC | delete(app_name) | Goodbye! | delete("taxis2") |
# MAGIC
# MAGIC See also [Lakehouse Apps Instruction Manual](https://docs.google.com/document/d/1Fl_P7nAhozFD_dTsbEaUDARPttlBXzoYlvVk_FZCw-8/edit?usp=sharing).
# MAGIC
# COMMAND ----------
app_name = "taylors-chainlit-app-2"
# COMMAND ----------
helpers.create(app_name=app_name)
# helpers.delete(app_name=app_name)
# COMMAND ----------
helpers.details(app_name=app_name)
# COMMAND ----------
helpers.deploy(app_name=app_name, source_code_path="/Workspace/Users/[email protected]/lakehouse-app/app")
# COMMAND ----------