Skip to main content

Get started with a streamlit app template code in style

Project description

StartLit โญ

PyPI - Version GitHub License PyPI - Downloads example workflow

Welcome to StartLit!

StartLit is your gateway to building Streamlit apps with ease. It brings a simple, streamlined way to start your Streamlit projects. Here's what's included in the latest release:

Features:

  • Package Installation: Now you can easily install StartLit from PYPI using pip install startlit.

Install the package from PYPI

pip install startlit

Import the package

from startlit import *
hello()

Running hello() should give you a simple welcome message -

Hello there ๐Ÿ‘‹ 
Welcome to Startlit! ๐Ÿš€

Download a very simple starter app

starter()

Output -

๐Ÿ“ฅ 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

If you look up in your local/working directory, you should find the 2 files present as mentioned above.


# just to check - files have been downloaded
!ls

Output -

app.py	requirements.txt

# just to check - app.py actually has streamlit code
!cat app.py

Output -

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

Other functions

# 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)

Snowflake Demo Apps

Usage

app_keyword = "chat_app"
destination_directory = "./folder"
snowflake_demo_app(app_keyword, destination_directory)

Output

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.

The following table lists the app keywords (used in the above example) and their corresponding folder names in the repository:

Keyword Folder Description
chat_app Chat app using Snowflake Cortex
email_generator LLM Email Generator
ci_demo Continuous Integration - Summit Demo
customer_engagement Customer Engagement App
rag Retrieval Augmented Generation (RAG)
external_access_chat_app External Access: Chat app using 3rd party LLM
github_insights Github Popularity Insights
h3_mapping H3 Mapping and Timeseries Visualization
sql_optimizer SQL Query Optimizer App using Snowflake Cortex
inventory_tracker Inventory Tracker
usage_monitoring Streamlit in Snowflake Usage Monitoring
metrics_app Key Metrics App
retention_analytics User Retention Analytics App
language_insights Language Usage Insights
data_io Writing and reading data back to Snowflake

Feedback and Contribution:

Excited to hear your feedback and suggestions for improvements.

Collaborations and Contributions are welcome ๐Ÿค Feel free to open issues or submit pull requests.

Enjoy your streamlit journey with StartLit and happy coding! ๐Ÿš€๐ŸŽ‰

Check package download stats at https://pypistats.org/packages/startlit


ยฉ Indraneel Chakraborty | 2024 ๐Ÿง‘โ€๐Ÿ’ปLinkedIn | X/Twitter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

startlit-0.0.5.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

startlit-0.0.5-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file startlit-0.0.5.tar.gz.

File metadata

  • Download URL: startlit-0.0.5.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for startlit-0.0.5.tar.gz
Algorithm Hash digest
SHA256 fa4ea2f6708975ab0c52c3e8a53b0d5599602b644efcf9c218ea695bc5e64a7c
MD5 e1bcae54c206ea99132ac4a12899e6ec
BLAKE2b-256 fe448c04a42b0c48dd744d9113b88b558554e2d133bf316e0a861bb6c9745ca5

See more details on using hashes here.

File details

Details for the file startlit-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: startlit-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for startlit-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5ec73cfefc0638b3280e9def459e2d79a4cd2aab0f243b1916d7ed4962caba25
MD5 d3ae06216b5f1590ad0697001f3b90f2
BLAKE2b-256 aad6d0ba097b04c56cbd8d273586557f9d4c08479286f6be32cf6b7b9ed55365

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page