startlit
startlit 0.0.4

歡迎來到StartLit!
StartLit是您輕鬆構建精簡應用程序的門戶。它帶來了一種簡單的簡化方法來開始您的簡化項目。這是最新版本中的內容:
pip install startlit 。hello() - 只是一個歡迎文字。starter() - 一個非常簡單的入門應用模板。 Quick-Peek:https://startlit-starter.streamlit.app/multipage() - 用於構建乘法簡化應用的應用模板。快速:https://startlit-multipage.streamlit.app/fragments() - 一個允許您在簡化應用程序中運行獨立組件的應用程序。 Quick-Peek:https://startlit-fragments.streamlit.app/chat() - 虛擬聊天機器人應用程序。 Quick-Peek:https://startlit-chat.streamlit.app/snowflake_demo_app("app_keyword","destination_directory") - 在雪花上下載用於簡化應用程序的演示。快速:https://github.com/snowflake-labs/snowflake-demo-streamlitlist_streamlit_apps() - 列表運行簡化應用程序。kill_streamlit_apps() - 殺死運行簡化應用程序。help() - 顯示可用功能列表的幫助菜單。 pip install startlit from startlit import *
hello ()運行hello()應該給您一個簡單的歡迎消息 -
Hello there
Welcome to Startlit!
starter ()輸出 -
? Starter app downloaded!?
? Look for 'app.py' and 'requirements.txt' file in your working directory ?
Visit https://startlit-starter.streamlit.app/ for a quick look to the starter app
如果您在本地/工作目錄中查找,則應找到如上所述的2個文件。
# just to check - files have been downloaded
! ls輸出 -
app.py requirements.txt
# just to check - app.py actually has streamlit code
! cat app.py輸出 -
import streamlit as st
# Display a title
st . title ( 'Hello, World! ?' )
# Add a description with an inline comment
st . write ( "This is my first app in Streamlit! " ) # Comment: Don't forget to smile # get a list of available ftrs
help ()
# Download a starter app template
starter ()
# Download a multipage app template
multipage ()
# Download a fragment app template
fragments ()
# Download a dummy chatbot app template
chat ()
# List all active apps
list_streamlit_apps ()
# Kill a specific app by app_id
kill_streamlit_apps ( app_id ) app_keyword = "chat_app"
destination_directory = "./folder"
snowflake_demo_app ( app_keyword , destination_directory )輸出
Cloning from https://github.com/Snowflake-Labs/snowflake-demo-streamlit.git ?
Using the main branch ?
Target directory created: ./folder
Fetched folder: Chat app using Snowflake Cortex ?
Fetched LICENSE file
Fetched README.md file
Demo app files fetched successfully to /content/folder ??
Please make sure to read the README.md and LICENSE files for important information.
下表列出了App關鍵字(在上面的示例中使用)及其在存儲庫中的相應文件夾名稱:
| 關鍵詞 | 文件夾說明 |
|---|---|
| chat_app | 使用雪花皮層聊天應用 |
| email_generator | LLM電子郵件生成器 |
| CI_DEMO | 連續集成 - 峰會演示 |
| customer_engagement | 客戶參與應用程序 |
| 抹布 | 檢索增強發電(RAG) |
| external_access_chat_app | 外部訪問:使用第三方LLM聊天應用程序 |
| github_insights | Github普及見解 |
| h3_mapping | H3映射和時間表可視化 |
| sql_optimizer | SQL查詢優化器應用使用Snowflake Cortex |
| natventory_tracker | 庫存跟踪器 |
| USAGE_MONTORITINING | 簡化雪花使用監視 |
| Metrics_App | 關鍵指標應用程序 |
| retention_Analytics | 用戶保留分析應用程序 |
| language_insights | 語言使用見解 |
| data_io | 寫和讀取數據回到雪花 |
很高興聽到您的反饋和改進建議。
歡迎合作和貢獻嗎?隨時打開問題或提交拉請請求。
享受啟動和愉快的編碼的簡化旅程! ?
在https://pypistats.org/packages/startlit上查看統計數據
© Indraneel Chakraborty | 2024 ? linkedin | X/Twitter