A visual way to display algorithm status.
Project description
basicallybars: a beginner's attempt at a python library
This is a small python library. Its goal is to make algorithms easier to use, by displaying visual feedback on the progress of the algorithm! It's also quite customisable. Yup, that's literally it. WIP; feel free to improve my terrible code.
Use
Import :)
import basicallybars
Create a new loading bar:
bar = basicallybars.progressbar()
Update & set values of that bar:
bar.display(x, y) # Note: "x" is the amount done in this is example while "y" is the full amount of things that have to be done
Different loading indicators
default_bar = basicallybars.progressbar(quantityDisplay="Amount") # Default loading display, shows as "(6/10)"
percent_bar = basicallybars.progressbar(quantityDisplay="Percent") # Creates a bar with a loading display as a percentage like "60%"
remaining_bar = basicallybars.progressbar(quantityDisplay="Remaining") # Creates a bar with a loading display like "4 remaining..."
Set the quantity_display paramater to anything else and it won't display; only the loading bar (Not really recommended)
basicallybars in action:
from time import sleep
bar = basicallybars.progressbar()
for x in range(0, 4):
bar.display(x, 4) # Display a bar that parses through imaginary data, with x being the amount of data finished and y being the total amount (4)
sleep(1)
basicallybars.clearTerminal() # Reset the terminal's output to reprint the bar
Note: More features and examples coming soon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file basicallybars-1.0.1.tar.gz.
File metadata
- Download URL: basicallybars-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
971390aedfb18f920c5134563b618740baf5ac95d98a65e2f93b41dfed691da4
|
|
| MD5 |
903db4c41547e3777b2bcfaad5a402d9
|
|
| BLAKE2b-256 |
e04924b87357a0832a1e948555e01f83426c07b9af319a21237fe69c251c0607
|
File details
Details for the file basicallybars-1.0.1-py3-none-any.whl.
File metadata
- Download URL: basicallybars-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2749a39b83c609254cb37797c33e03a473dec63675d48de97f89b4b87a3abac3
|
|
| MD5 |
aced924d7b84e1f9490f40a222d64445
|
|
| BLAKE2b-256 |
519dcfe7975febd4a44d5153bafbbc545c4af3f0cd91130acc011486e70496b2
|