Skip to main content

Create a CLI progress bar for your python project

Project description

Another CLI loading bar...

This is a simple classic CLI loading bar animation for all your CLI loading bar animation needs, whatever they might be! with lots of customisation options such as displaying percentages, and colour support. This animation can be easily incorporated into any function you want and also makes your CLI look way more professional! - literally from 0 to 100 JUST LIKE THAT! enjoy ;)

Also note that the install requires colorama

Example Code

import math
numbers = [x * 5 for x in range(1000, 3000)]
list = []
for x, i in enumerate(numbers):
    list.append(math.factorial(x))
    tcli_bar.bar(x + 1, len(numbers)) #Here
print('\nDone')

Another example but with colour and more

import math
import tcli_bar
from colorama import *

numbers = [x * 5 for x in range(100, 1500)]
list = []
for i, a in enumerate(numbers):
    list.append(math.factorial(i))
    tcli_bar.bar(i + 1, len(numbers), colour=Fore.GREEN, icon='#', description='Uploading...', show_percent=False)
print('\nHello')

A 'Free' example

import tcli_bar

free_bar(set=100, icon= '+', colour=Fore.RED, description='Scanning...')

Results

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

tcli_bar-3.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

tcli_bar-3.0-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

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