Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

basicallybars-1.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

basicallybars-1.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for basicallybars-1.0.1.tar.gz
Algorithm Hash digest
SHA256 971390aedfb18f920c5134563b618740baf5ac95d98a65e2f93b41dfed691da4
MD5 903db4c41547e3777b2bcfaad5a402d9
BLAKE2b-256 e04924b87357a0832a1e948555e01f83426c07b9af319a21237fe69c251c0607

See more details on using hashes here.

File details

Details for the file basicallybars-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for basicallybars-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2749a39b83c609254cb37797c33e03a473dec63675d48de97f89b4b87a3abac3
MD5 aced924d7b84e1f9490f40a222d64445
BLAKE2b-256 519dcfe7975febd4a44d5153bafbbc545c4af3f0cd91130acc011486e70496b2

See more details on using hashes here.

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