Skip to main content

Easy progress bar for streamlit based on the awesome streamlit.progress and tqdm

Project description

stqdm

Tests codecov

stqdm is the simplest way to handle a progress bar in streamlit app.

demo gif

How to install

pip install stqdm

How to use

You can find some examples in examples/

Use stqdm in main

from time import sleep
from stqdm import stqdm

for _ in stqdm(range(50)):
    sleep(0.5)

Use stqdm in sidebar

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

from time import sleep
from stqdm import stqdm

for _ in stqdm(range(50), desc="This is a slow task", mininterval=1):
    sleep(0.5)

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

stqdm-0.0.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

stqdm-0.0.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file stqdm-0.0.2.tar.gz.

File metadata

  • Download URL: stqdm-0.0.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.6.9 Linux/4.19.128-microsoft-standard

File hashes

Hashes for stqdm-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4d883466f793dda4d37b80f11aa8e6e4f66f83eaac826e23804a3e931ccf48a1
MD5 a15b7efec950b4d149e366bf1c0dd2ef
BLAKE2b-256 114c61c993045ff585997580238e7f033fdb9b9c717d3661ebb9f73942ffaf11

See more details on using hashes here.

Provenance

File details

Details for the file stqdm-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: stqdm-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.6.9 Linux/4.19.128-microsoft-standard

File hashes

Hashes for stqdm-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 507baf0fe1ea21372840d2ce92f6b1eb133c054d8b79e770241bfce92d112aad
MD5 9a3c1161c401c3ccf9158164ad27fb0d
BLAKE2b-256 8768225897bc9b6753e81b9faf555eccb5432cdd68608ba4b8880eeb2d024b11

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