반응형
반응형

https://pypi.org/project/rich/

 

rich

Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal

pypi.org

Rich is a Python library for rich text and beautiful formatting in the terminal.

The Rich API makes it easy to add color and style to terminal output. Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more — out of the box.

python -m pip install rich

 

from rich.progress import Progress
import time

def main():
    with Progress() as progress:
        task1 = progress.add_task("[cyan]Downloading...", total=100)
        task2 = progress.add_task("[magenta]Processing...", total=200)

        while not progress.finished:
            time.sleep(0.03)  # Simulate some work
            progress.update(task1, advance=1)
            progress.update(task2, advance=0.5)

if __name__ == "__main__":
    main()

 

 

from rich.progress import Progress
import time

def main():
    # Create a progress bar
    with Progress() as progress:
        # Add a task
        task = progress.add_task("[cyan]Processing...", total=100)
        
        # Update progress
        for i in range(100):
            time.sleep(0.05)  # Simulate some work
            progress.update(task, advance=1)  # Advance the progress bar by 1

if __name__ == "__main__":
    main()
반응형
반응형

Nanobar.js: Ultra lightweight progress bars

Javascript / Added on March 9, 2014

Nanobar.js offers very, very lightweight progress bars, coming in at around 725 bytes when gzipped. It doesn’t require jQuery and is easy to use.

nanobar

nanobar

Very very lightweight progress bars (~730 bytes gzipped). No jQuery needed.

Compatibility: iE8+ and the rest of the world

반응형
반응형

Progre(c)ss: Pure CSS progress bars

proegrecss

 

 

pure css progress bars with minimal effort!

 

 

 Pure CSS progress bars with minimal effort

Usage

  1. Include the stylesheet.
  2. Add the class progrecss to your element (any element)
  3. Add a data attribute data-progrecss defining the completion percentage (1 to 100).

 

반응형
반응형

Pace: An automatic page load progress indicator

http://codevisually.com/

 

pace

 

반응형
반응형

Progression.js: Create friendlier forms

Progression.js is a jQuery plugin that makes it easy to add real-time hints to your forms. It also lets you include project updates for each field.

progression.js

 

반응형

+ Recent posts