🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

tcli-bar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcli-bar

Create a CLI progress bar for your python project

3.0
PyPI
Maintainers
1

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

Keywords

cli loading bar

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts