Streamlit-ext

Latest version: v0.1.13

Safety actively analyzes 688931 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.1.6

0.1.5

Add Class `steDownloadButton` to `a` tag and `stDownloadButton` to `div` tag wrapped `a`.

So users can now write custom css points to download button see this example:

python
import numpy as np
import pandas as pd
import streamlit as st

import streamlit_ext as ste

df = pd.DataFrame(np.random.rand(10, 5))


ste.download_button("Click to download data!", df, "YOUR_DF.xlsx")
ste.download_button("Click to download text!", b"text content", "YOUR_STRING.txt")
st.download_button("Click to download text!", b"text content", "YOUR_STRING.txt")

st.markdown(
"""
<style>
div.stDownloadButton > button,
div.stDownloadButton > a {
background-color: 000000 !important;
color:ffffff !important;
}
div.stDownloadButton > button:hover,
div.stDownloadButton > a:hover {
background-color: 000000 !important;
color:ff0000 !important;
}
</style>""",
unsafe_allow_html=True,
)

0.1.4

- Change `ste.download_button`'s parameter name to the same as `st.download_button`
- Add support for `pd.Dataframe().style` to `ste.download_button`

0.1.3

- Add support for sidebar, use it by `ste.sidebar.checkbox` just like in streamlit
- Fix bug when passing dict.keys() as options

0.1.2

- Fix `pd.DataFrame` download bug if `openpyxl` not installed

0.1.1

- Fix synced widget do not change on first time click after streamlit start

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.