Skip to main content

An all-in-one place, to find complex or just natively unavailable components on streamlit.

Project description

Extra-Streamlit-Components

Downloads

An all-in-one place, to find complex or just not available components by default on streamlit.

Components

Firstly, add import extra_streamlit_components as stx

  • Cookie Manager

    The long awaited between-sessions in-browser cookies store and manager! It stores cookies in a strict same-site behaviour.

    P.S. For best experience use streamlit>=0.84.0

    cookie_manager = stx.CookieManager()
    
    st.subheader("All Cookies:")
    cookies = cookie_manager.get_all()
    st.write(cookies)
    
    c1, c2, c3 = st.beta_columns(3)
    with c1:
      st.subheader("Get Cookie:")
      cookie = st.text_input("Cookie", key="0")
      clicked = st.button("Get")
      if clicked:
          value = cookie_manager.get(cookie)
          st.write(value)
    with c2:
      st.subheader("Set Cookie:")
      cookie = st.text_input("Cookie", key="1")
      val = st.text_input("Value")
      if st.button("Add"):
          cookie_manager.set(cookie, val)
    with c3:
      st.subheader("Delete Cookie:")
      cookie = st.text_input("Cookie", key="2")
      if st.button("Delete"):
          cookie_manager.delete(cookie)
    

  • TabBar

    Inspire from React's ScrollMenu, this component receives a list of TabBarItemData, and returns the id of the selected tab

    chosen_id = stx.tab_bar(data=[
        stx.TabBarItemData(id=1, title="ToDo", description="Tasks to take care of"),
        stx.TabBarItemData(id=2, title="Done", description="Tasks taken care of"),
        stx.TabBarItemData(id=3, title="Overdue", description="Tasks missed out"),
    ], default=1)
    st.info(f"{chosen_id=}")
    

  • BouncingImage

    Probably not the best naming but this component, renders an image by its path or url, and animates by zooming in and out repetitively giving an illusion of a bounce.

    image_url = "https://streamlit.io/images/brand/streamlit-logo-secondary-colormark-darktext.svg"
    stx.bouncing_image(image_source=image_url, animate=True, animation_time=1500, height=200, width=600)
    

  • StepperBar

    A streamlit wrapper on MaterialUI's Stepper

    val = stx.stepper_bar(steps=["Ready", "Get Set", "Go"])
    st.info(f"Phase #{val}")
    

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

extra_streamlit_components-0.1.3.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

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

extra_streamlit_components-0.1.3-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file extra_streamlit_components-0.1.3.tar.gz.

File metadata

  • Download URL: extra_streamlit_components-0.1.3.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for extra_streamlit_components-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2d3812428031a2d423e7a76d2488238ad86ed9c05de9fd99926fd58dc0523c2f
MD5 5cdb7508d8967ce500d865cb77abcb1b
BLAKE2b-256 1923f6a8fe4e8684cb63e8fe618dad04b768ae0a5c0b8974b1e7e733a1c256ce

See more details on using hashes here.

File details

Details for the file extra_streamlit_components-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: extra_streamlit_components-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for extra_streamlit_components-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9978b802f6c18c13619c36dd337c7f2aec76cf27dee8abe83387a01d5f289057
MD5 6d2635f30a8703fd0ad612624548cb1f
BLAKE2b-256 b9d6b3dc17e8843dea59f6b93c52dfcf679e93de3280adefa7af0024460eb378

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