Skip to main content

A Streamlit implementation of the Base Web library.

Project description

Streamlit Baseweb

Streamlit Baseweb is a Python package that provides custom components from the Baseweb framework, allowing you to enhance your Streamlit applications with beautiful and interactive UI elements.

Installation

You can install Streamlit Baseweb using pip:

pip install streamlit-baseweb

Usage

To use the Baseweb components in your Streamlit application, you need to import the necessary components from the 'streamlit_baseweb' module and utilize them in your code. Here's an example:

import streamlit as st
from streamlit_baseweb import base_web_modal, base_web_button

st.title("Testing Streamlit Baseweb")
if base_web_button(size="large", shape="pill", kind="secondary"):
    base_web_modal(
        title="This is a test modal",
        body="""
                Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium 
                doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae 
                vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, 
                sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est,
    """,
        key="modal",
    )
if st.session_state.get("modal"):
    st.success("Confirmation received from modal")

For more details on available components and their usage, refer to the package documentation.

Roadmap

Elements will be integrated as per the below priority ranking:

  1. modal
  2. buttons
  3. button groups
  4. navbar
  5. tooltip
  6. alerts
  7. pop-over cards

Additional elements have not yet been prioritized

Contributing

Contributions to Streamlit Baseweb are welcome! If you find any issues or have suggestions for improvements, please open an issue on the GitHub repository. If you'd like to contribute code, you can fork the repository, make your changes, and submit a pull request.

Before contributing, please review the Contributing Guidelines for more information.

License

This package is licensed under the MIT License. See the LICENSE file for more information.

Credits

Streamlit Baseweb is created and maintained by Thomas Bouamoud. It utilizes the Baseweb framework by Uber.

Contact

If you have any questions or inquiries, feel free to reach out to thomas.bouamoud@gmail.com.

👩‍💻 Happy Streamlit Baseweb coding! 👨‍💻

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

streamlit_baseweb-0.1.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

streamlit_baseweb-0.1.2-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file streamlit_baseweb-0.1.2.tar.gz.

File metadata

  • Download URL: streamlit_baseweb-0.1.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for streamlit_baseweb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4faa579d923adfd9e9f11895df2b0ab246ffc3f00e55ffb2ed3e8ee912c119af
MD5 32084e5783d3e35fe35f7fbcd533ed8c
BLAKE2b-256 e38881c2faf9934145eeec5ad3bc64b342e3cf430e2a8765c449700718121b8c

See more details on using hashes here.

Provenance

File details

Details for the file streamlit_baseweb-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_baseweb-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22798858261d853d41fa5c3139cc58ad2076d22d8f9a44f3fee0b1f41a73a1c6
MD5 006b3b037baf196d7d5ee26a3209a9d8
BLAKE2b-256 f4c9d378f17d89ec6e4755e7d2c9329ccfbedb516be1622c25824ac133946a80

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page