pronimgress

Simple text progress bars in Nim!

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:25

Installation

nimble install pronimgress
choosenim install pronimgress
git clone https://github.com/bichanna/pronimgress

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
pronimgress - - - - - - -

Source

Repository https://github.com/bichanna/pronimgress
Homepage https://github.com/bichanna/pronimgress#pronimgress
Registry Source nimble_official

README

pronimgress

Simple text progress bars in Nim!

Progress: [=================>          ] 62.3% Complete

Usage

  # {prefix} {leftSurroundChar}{backgroundChar}{progressChar}{progressHeadChar}{rightSurroundChar} <percentage>% {suffix}
  # e.g., Progress: [=================>          ] 62.3% Complete
  # prefix            = "Progress:"
  # leftSurroundChar  = '['
  # backgroundChar    = ' '
  # progressChar      = '='
  # progressHeadChar  = '>'
  # rightSurroundChar = ']'
  # suffix            = "Complete"
import pronimgress

var progressBar = newPronimgressBar(
  prefix = "Doing something time consuming",
  leftSurroundChar = '[',
  rightSurroundChar = ']',
  backgroundChar = '-',
  progressChar = '=',
  progressHeadChar = '>',
  size = 100
)

for i in 0 ..< 101:
  # do something

  var msg = "Updating..."
  if i == 100:
    msg = "Complete"
  progressBar.update(1, msg)

stdout.write("\n")

# output: Doing something time consuming [===========================================================>] 100.0% Completed

Contribution

Contribution is always welcome :)

License

MIT