All Projects → ctongfei → Progressbar

ctongfei / Progressbar

Licence: mit
Terminal-based progress bar for Java / JVM

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Progressbar

Tqdm
A Fast, Extensible Progress Bar for Python and CLI
Stars: ✭ 20,632 (+3201.12%)
Mutual labels:  cli, terminal, console, progressbar
Python Progressbar
Progressbar 2 - A progress bar for Python 2 and Python 3 - "pip install progressbar2"
Stars: ✭ 682 (+9.12%)
Mutual labels:  cli, terminal, console, progressbar
Jquery.terminal
jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
Stars: ✭ 2,623 (+319.68%)
Mutual labels:  cli, terminal, console
S Tui
Terminal-based CPU stress and monitoring utility
Stars: ✭ 2,825 (+352%)
Mutual labels:  cli, terminal, console
Progress bar
Command-line progress bars and spinners for Elixir.
Stars: ✭ 281 (-55.04%)
Mutual labels:  cli, terminal, progressbar
Ascii
👾 ASCII Roulette :: ascii art video chat on the cli
Stars: ✭ 202 (-67.68%)
Mutual labels:  cli, terminal, console
.tmux
🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
Stars: ✭ 15,594 (+2395.04%)
Mutual labels:  cli, terminal, console
Tty Markdown
Convert a markdown document or text into a terminal friendly output.
Stars: ✭ 275 (-56%)
Mutual labels:  cli, terminal, console
Galacritty
WIP GTK terminal emulator based on Alacritty
Stars: ✭ 136 (-78.24%)
Mutual labels:  cli, terminal, console
Nestjs Console
A nestjs module that provide a cli to your application.
Stars: ✭ 284 (-54.56%)
Mutual labels:  cli, terminal, console
Consola
Elegant Console Logger for Node.js and Browser 🐨
Stars: ✭ 3,461 (+453.76%)
Mutual labels:  cli, terminal, console
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+370.4%)
Mutual labels:  cli, terminal, progressbar
Cointop
A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
Stars: ✭ 2,912 (+365.92%)
Mutual labels:  cli, terminal, console
Php Console Spinner
Colorful highly configurable spinner for php cli applications (suitable for async apps)
Stars: ✭ 225 (-64%)
Mutual labels:  cli, terminal, console
Mandown
man-page inspired Markdown viewer
Stars: ✭ 173 (-72.32%)
Mutual labels:  cli, terminal, console
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+351.36%)
Mutual labels:  cli, terminal, console
Yaspin
A lightweight terminal spinner for Python with safe pipes and redirects 🎁
Stars: ✭ 413 (-33.92%)
Mutual labels:  cli, terminal, console
Ervy
Bring charts to terminal.
Stars: ✭ 1,530 (+144.8%)
Mutual labels:  cli, terminal, console
Nnn
n³ The unorthodox terminal file manager
Stars: ✭ 13,138 (+2002.08%)
Mutual labels:  cli, terminal, console
Chalk
🖍 Terminal string styling done right
Stars: ✭ 17,566 (+2710.56%)
Mutual labels:  cli, terminal, console

progressbar

Maven Central

A console progress bar for JVM with minimal runtime overhead.

Menlo, Fira Mono, Source Code Pro, Iosevka, JetBrains Mono or SF Mono are recommended for optimal visual effects.

For Consolas or Andale Mono fonts, use ProgressBarStyle.ASCII because the box-drawing glyphs are not aligned properly in these fonts.

Documentation

Installation

Maven:

  <dependency>
      <groupId>me.tongfei</groupId>
      <artifactId>progressbar</artifactId>
      <version>0.9.1</version>
  </dependency>

Usage

Declarative usage (since 0.6.0):

// Looping over a collection:
for (T x : ProgressBar.wrap(collection, "TaskName")) {
    ...
    // Progress will be automatically monitored by a progress bar
}

Imperative usage (since 0.7.0 switched to Java's try-with-resource pattern):

// try-with-resource block
try (ProgressBar pb = new ProgressBar("Test", 100)) { // name, initial max
 // Use ProgressBar("Test", 100, ProgressBarStyle.ASCII) if you want ASCII output style
  for ( /* TASK TO TRACK */ ) {
    pb.step(); // step by 1
    pb.stepBy(n); // step by n
    ...
    pb.stepTo(n); // step directly to n
    ...
    pb.maxHint(n);
    // reset the max of this progress bar as n. This may be useful when the program
    // gets new information about the current progress.
    // Can set n to be less than zero: this means that this progress bar would become
    // indefinite: the max would be unknown.
    ...
    pb.setExtraMessage("Reading..."); // Set extra message to display at the end of the bar
  }
} // progress bar stops automatically after completion of try-with-resource block

NEW in 0.9.0: You can now use multiple progress bars for parallel jobs:

try (ProgressBar pb1 = new ProgressBar("Job1", max1); 
     ProgressBar pb2 = new ProgressBar("Job2", max2)) { ... }
Kotlin extensions

Kotlin DSL-like builders are available at reimersoftware/progressbar-ktx.

Changelog

CHANGELOG

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].