Skip to main content

A module to run streamlit apps as local apps

Project description

Streamlit Runner

A simple way to run Streamlit app as a desktop app

Installation

pip install streamlitrunner

Usage

Import streamlitrunner and call run()

# my_app.py
import streamlitrunner as sr
import streamlit as st

def main():
    st.title("Hello World!")
    st.write("This is a simple text example.")

if __name__ == '__main__':
    sr.run()
    main()

Now you can only call python my_app.py and it will work as a desktop app!

Note:
To prevent streamlit warnings, call run() before any st call, as above.

Documentation:

https://streamlitrunner.readthedocs.io/en/latest/

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

streamlitrunner-0.1.0.tar.gz (169.8 kB view details)

Uploaded Source

Built Distribution

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

streamlitrunner-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file streamlitrunner-0.1.0.tar.gz.

File metadata

  • Download URL: streamlitrunner-0.1.0.tar.gz
  • Upload date:
  • Size: 169.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.9

File hashes

Hashes for streamlitrunner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ecb5477bb86fa73c8401bc1e92bc129445431e0de2124917df96394a1959847c
MD5 3355cdb6a663ee875a3a16ec879bedf5
BLAKE2b-256 650118850ce83ea66f5abcb84ea5057385b2f55e77855ee3dbe065c8181fd11c

See more details on using hashes here.

File details

Details for the file streamlitrunner-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlitrunner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c22936b925c3c7aad1f3cbf86fd4f3d69aeabea540fc75faebdce9c82fcd83e
MD5 26c62dc31ae2c1940d8ac4885f2ddbc6
BLAKE2b-256 513536a6e334dad593d2196a0fc339d939e1004cda662cfc668571feeeccfa4f

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