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.1.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.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlitrunner-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 37404443eb7a370f5e55c03b837509487c7628acdd19a177cd2e8593f3350c74
MD5 c50a0cf2dd08680397ee350ee7f12759
BLAKE2b-256 bbd9ee9992b6df5778b241e5aabf153504ed11e2b4544848eec366038c7daac6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlitrunner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1385e9b6cb6553a6bd0a03a21b3be296f43b788e74077ff7219f7feb8aca7b42
MD5 a5f7d5c1e8bc9b5ebe8790547182ed13
BLAKE2b-256 6d4035089e881b4c75ac67789ba1cc5f269f3e4820e6c3ea592ac14f19b07c54

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