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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file tcli_bar-3.0.tar.gz.

File metadata

  • Download URL: tcli_bar-3.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for tcli_bar-3.0.tar.gz
Algorithm Hash digest
SHA256 70b1c8360e4873841ba5fdbe9d9c4fae0d2e602b798b70723b8901e639820f66
MD5 630bae064f89242ceca64da359a3bd57
BLAKE2b-256 fa134bba88cb8af73d5562863ebb2452938dd5bbb5c89e29c332c3d5c26cf78a

See more details on using hashes here.

File details

Details for the file tcli_bar-3.0-py3-none-any.whl.

File metadata

  • Download URL: tcli_bar-3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for tcli_bar-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3e4ad0bf6cdb46f1cdfd9056d413b5e43c8c47924bc1664924558174ddaa00f
MD5 6deab073a74711030344462573c6fb76
BLAKE2b-256 b27a974e4636141a448aaadbf420f2858c4e1e7295a468211730861fffd5bf2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page