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 via function
  • v0.2: GitHub Pages auto-deploy (via GitHub Actions workflow generation)
  • v0.3: TOML or YAML file support as optional alternative to the packing function
  • v0.4: Multi-page app support
  • v0.5: Resource bundling (images, CSVs, assets, etc.)
  • v0.6: Auto-handling of stlite-specific features (e.g. asyncio vs sleep)
  • 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

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.0.1.tar.gz (7.8 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.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for stlitepack-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5931b8e88a03fb61439ff1e81f1335315a44ea29e613b86034d54fa08b39c204
MD5 70210934ab46c56f0060cc7e7b273d68
BLAKE2b-256 a555dbd61e20cfd549d72fe4e5c2a415c1f968f9288e69c1f0197d3dd6da204c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for stlitepack-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2687f3dd2de2c316c214ef7c400f15e8bb255638cfd529fc55377da3f0dfedf9
MD5 ef4a2a7ac325a46df14cf51831758e7e
BLAKE2b-256 9406b9c0fa4dc23c984ba7c22b4e3f9244694009a164595a545350ee04432ab6

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