Releases: JordanWelsman/gigaloader
gigaloader 1.0.0
Description
The first release of gigaloader
implements a simple linear loading interface as a python class. You can use it by instantiating an object and passing it a name, the desired size of the loading bar, and the number of checkpoints. You then insert an increment method call into your existing code where it will be called x times where x is the number of checkpoints, and it will print a loading bar when you execute your code. Here's an example:
from gigaloader import GigaLoader
steps = 56
loading_bar = GigaLoader(
name = "Showcase", # name to be displayed during loading
length = 30, # length of the loading bar output
num_checkpoints = steps, # number of times the bar will be updated
print_percentage = True # optionally print the progress percentage
)
for _ in range(56): # existing code
loading_bar.increment_checkpoint() # seamless loading bar implementation
The loading bar class is designed to seamlessly incorporate into your existing code and will update the progress of the loading bar every time GigaLoader.increment_checkpoint()
is invoked, until the progress counter reaches its maximum. The loading interface is designed to keep terminal clutter to a minimum. Output looks like this during execution:
Showcase: [===================== ] 71%
and like this after execution:
Complete. [==============================] 100%
Changelog
- Simple loading interface implementation