stqdm-0.0.5a2


توضیحات

Easy progress bar for streamlit based on the awesome streamlit.progress and tqdm
ویژگی مقدار
سیستم عامل OS Independent
نام فایل stqdm-0.0.5a2
نام stqdm
نسخه کتابخانه 0.0.5a2
نگهدارنده ['Wirg']
ایمیل نگهدارنده ['Wirg@users.noreply.github.com']
نویسنده Wirg
ایمیل نویسنده Wirg@users.noreply.github.com
آدرس صفحه اصلی https://github.com/Wirg/stqdm
آدرس اینترنتی https://pypi.org/project/stqdm/
مجوز Apache-2.0
# stqdm ![Tests](https://github.com/Wirg/stqdm/workflows/Tests/badge.svg) [![codecov](https://codecov.io/gh/Wirg/stqdm/branch/main/graph/badge.svg?token=YeHnzpfMty)](https://codecov.io/gh/Wirg/stqdm) [![CodeQL](https://github.com/Wirg/stqdm/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Wirg/stqdm/actions/workflows/codeql-analysis.yml) stqdm is the simplest way to handle a progress bar in streamlit app. ![demo gif](https://raw.githubusercontent.com/Wirg/stqdm/main/assets/demo.gif) ## How to install ```sh pip install stqdm ``` ## How to use You can find some examples in `examples/` ### Use stqdm in main ```python from time import sleep from stqdm import stqdm for _ in stqdm(range(50)): sleep(0.5) ``` ### Use stqdm in sidebar ```python from time import sleep import streamlit as st from stqdm import stqdm for _ in stqdm(range(50), st_container=st.sidebar): sleep(0.5) ``` ### Customize the bar with tqdm parameters ![demo gif](https://raw.githubusercontent.com/Wirg/stqdm/main/assets/demo_with_custom_params.gif) ```python from time import sleep from stqdm import stqdm for _ in stqdm(range(50), desc="This is a slow task", mininterval=1): sleep(0.5) ``` ### Display a progress bar during pandas Dataframe & Series operations STqdm inherits from tqdm, you can call stqdm.pandas() in a similar way. See [tqdm docs](https://github.com/tqdm/tqdm#pandas-integration). ```python from time import sleep import pandas as pd from stqdm import stqdm stqdm.pandas() pd.Series(range(50)).progress_map(lambda x: sleep(1)) pd.Dataframe({"a": range(50)}).progress_apply(lambda x: sleep(1), axis=1) ``` ### Display the progress bar only in the frontend or the backend ```python from time import sleep from stqdm import stqdm # Default to frontend only for i in stqdm(range(50), backend=False, frontend=True): sleep(0.5) for i in stqdm(range(50), backend=True, frontend=False): sleep(0.5) ```


نیازمندی

مقدار نام
>=4.50 tqdm
>=0.66 streamlit


زبان مورد نیاز

مقدار نام
>=3.7.2,<4.0.0 Python


نحوه نصب


نصب پکیج whl stqdm-0.0.5a2:

    pip install stqdm-0.0.5a2.whl


نصب پکیج tar.gz stqdm-0.0.5a2:

    pip install stqdm-0.0.5a2.tar.gz