Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/engali94/tqdmprogressbar

TQDM like CLI progress bar
https://github.com/engali94/tqdmprogressbar

Last synced: about 1 month ago
JSON representation

TQDM like CLI progress bar

Awesome Lists containing this project

README

        

# TQDMProgressBar

TQDMProgressBar is a Swift package that provides a customizable progress bar for command-line interfaces, inspired by Python's TQDM library. It offers a simple and flexible way to add progress indicators to your Swift applications.

![TQDMProgressBar Demo](Resources/demo.gif)

## Features

- Easy to use with sequences, async sequences, and manual updates
- Customizable appearance with various styles and colors
- Support for different bar formats
- Unit scaling for easy representation of file sizes, etc.
- Async/await support for modern Swift concurrency

## Installation

### Swift Package Manager

Add the following to your `Package.swift` file:

```swift
dependencies: [
.package(url: "https://github.com/engali94/TQDMProgressBar.git", from: "0.1")
]
```

## Usage

### Basic Usage

```swift
import TQDMProgressBar

let total = 100
let bar = ProgressBar(total: total, desc: "Processing")
for _ in 0..