Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/engali94/tqdmprogressbar
- Owner: engali94
- Created: 2024-07-26T16:39:30.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T16:41:28.000Z (5 months ago)
- Last Synced: 2024-07-26T18:31:35.835Z (5 months ago)
- Language: Swift
- Size: 2.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 TQDMProgressBarlet total = 100
let bar = ProgressBar(total: total, desc: "Processing")
for _ in 0..