dashbar
A progress-bar designed to be useful and easy to use.
Usage
Iterating
To start dashbar, execute the following code:
for i in dashbar.dash(10, dash_type="pipe", desc="example"):
time.sleep(1/10) #completion after one second
if i == 5:
dashbar.status("half-way complete")
If the progress is large, the autodash function can be used, which adjusts the step count to fit the terminal:
for i in dashbar.autodash(10):
time.sleep(1/10)
if i == 8:
dashbar.log("eighty percent complete")
Customizing dashbar
Dashbars can be customized with the following code:
dashbar.customize(element="filler", value=" ")
List of dashbars:
- classic
- arrow
- box
- circle_charger
- box_charger
- striped
- dollar
- box_shade
- pipe
- heart
- radioactive
- benzene
- custom
List of dashbar elements:
- start
- head
- trail
- filler
- finish
Building a Dashbar
Dashbars can be built via the Dashbar class:
bar = dashbar.Dashbar(10, "box_shade")
for i in range(100):
if i%10 == 0:
bar.update(1, display=True)
time.sleep(1/20) #completion after five seconds
Metadata
Release files for dashbar 2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dashbar-2.1.tar.gz | 4.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dashbar-2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / dashbar-2.1.tar.gz
| Download URL | dashbar-2.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
210b0189bd70b928ebfb84ea63791aeb96a5d2710b9b53c7b9387b4868f86717
|
|
BLAKE2b-256 checksum How to use checksums |
02af2f88672added663bf78b4be8ac81aea73cfcc5d2a554e586fa229b6d3b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / dashbar-2.1-py3-none-any.whl
| Download URL | dashbar-2.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba5d321c044d4fc18a6cd4765681a0324a8a653c7be7dc2d4e2e5d59e3f64a2e
|
|
BLAKE2b-256 checksum How to use checksums |
f4ea42797f3a02941a957f38ae4c26f146b32d5ade154786938b3cbdc678e9cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for dashbar 2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.