Skip to main content

A package for converting streamlit apps to stlite apps to remove the need for hosting

Project description

stlitepack

stlitepack is a Python utility that helps you turn your existing Streamlit apps into stlite apps — lightweight, browser-only Streamlit apps that run entirely in the client without a server.

With stlitepack, you can:

  • 📦 Pack your Streamlit app into a stlite-ready format (current functionality).
  • 🚀 (Upcoming) Generate GitHub Actions workflows to auto-deploy your app to GitHub Pages.
  • 🗂️ (Planned) Add support for multi-page apps, external resources, and more.

📦 Installation

pip install stlitepack

🚀 Usage

from stlitepack import pack

# Pack your Streamlit app (e.g., "app.py") into a stlite bundle
pack("app.py", output_dir="docs")

This will create a docs/ folder containing your stlite-ready app files, which you can serve as static files.

🔮 Roadmap

  • v0.1: Single-page app packing
  • v0.2: Helper functions for GitHub Pages auto-deploy (via GitHub Actions workflow generation)
  • v0.3: Multi-page app support (for pages/ subfolder method)
  • v0.4: Resource bundling (images, CSVs, assets, etc.)
  • v0.5: Multi-page app support (for st.navigation() method)
  • v0.6: Auto-handling of stlite-specific features (e.g. asyncio vs sleep)
  • v0.7: TOML or YAML file support as optional alternative to the packing function
  • v1.0: Full toolkit for packaging, deploying, and managing stlite apps

🤝 Contributing

Contributions, feature requests, and feedback are welcome! Open an issue or submit a pull request to help improve stlitepack.

📜 License

Apache 2.0 License. See LICENSE for details.

Acknowledgements

Generative AI Use Disclosure

This package was developed with the assistance of ChatGPT (OpenAI’s GPT-5 model) as a coding and documentation partner. All code and design decisions were reviewed and finalized by a human, and ChatGPT’s output was used as a foundation rather than a final product.

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

stlitepack-0.2.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stlitepack-0.2.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file stlitepack-0.2.0.tar.gz.

File metadata

  • Download URL: stlitepack-0.2.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for stlitepack-0.2.0.tar.gz
Algorithm Hash digest
SHA256 33c8d5c5e714ac3cd9d92c5ac79ac3ff0e86855fe21699a0c0aa1c8622f41a35
MD5 0b10ed5c9991381eae9ebee82f11969c
BLAKE2b-256 c9db7e7634fedb35d85e142d451a3f540b54b932b60d2e6e897b18f21902b9b8

See more details on using hashes here.

File details

Details for the file stlitepack-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: stlitepack-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for stlitepack-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0691ec1e51c251aed598c10e65d219be069009bc73d24e1937dd3afba67b76f3
MD5 795472af289bf90b0142555ebe358015
BLAKE2b-256 3459fc5ae2086cc771ff35d197de50e10b1f3f03592a4144b7994a7fa1e60870

See more details on using hashes here.

Supported by

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