Skip to main content

A minimal streamlit app framework

Project description

Clay-Streamlit

Are you tired of the boilerplate needed to actually run a useful streamlit app? I was.

  • Create multipage apps simply by defining list of pages

  • Each page has a name, lambda to show contents, and lambda to show sidebar

  • Run your code simply by calling python <myfile.py>

  • No need to complicate launch.json with streamlit run <myfile> commands

  • Makes debugging and working in containers simpler

from clay_streamlit_one import AppPage, ClayStreamlitApp

pages_list = [
        AppPage.AppPage("first page", 
            None, 
            lambda: st.button("This is a button for the first page") 
        ),
        AppPage.AppPage("Hi", 
            lambda: st.code(demo_code) and st.write("Success! ClayStreamlitApp is working"),
            None
        ),
        ]

myapp = ClayStreamlitApp.ClayStreamlitApp()
myapp.set_pages(pages_list)
myapp.run()

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

clay_streamlit_one-0.2.5.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

clay_streamlit_one-0.2.5-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file clay_streamlit_one-0.2.5.tar.gz.

File metadata

  • Download URL: clay_streamlit_one-0.2.5.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for clay_streamlit_one-0.2.5.tar.gz
Algorithm Hash digest
SHA256 15b5253582327c507f8b4ad09a11e6eb9e4b27f3c7e96c85e33f53c355b8425b
MD5 fd89bbfa5e1ae1dc59724c31033e3c71
BLAKE2b-256 dc7833e102e3422e672673ec55ee8a96fee2f6a3f00ab6e2899f04f2129415ad

See more details on using hashes here.

File details

Details for the file clay_streamlit_one-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for clay_streamlit_one-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 49cfd50ccc771036c724aa4a87d1510873211efcf766f161a986da62e3d28880
MD5 f926b7dece4168c8379a2a82405e79f7
BLAKE2b-256 adf2abc5a6aaa94eff8109bd39348af43c03cd9e34ce895e13ffbb66be8a78e2

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