{"id":19182024,"url":"https://github.com/glentner/progressbar","last_synced_at":"2025-08-24T05:20:57.691Z","repository":{"id":218644522,"uuid":"746985946","full_name":"glentner/progressbar","owner":"glentner","description":"Command-line progress bar for streaming files","archived":false,"fork":false,"pushed_at":"2025-03-14T23:20:13.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T00:25:56.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glentner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-23T03:01:46.000Z","updated_at":"2025-03-14T23:20:17.000Z","dependencies_parsed_at":"2024-02-20T23:28:23.490Z","dependency_job_id":"1e0a28bb-6d65-4f1f-b063-9b88bff9b0cd","html_url":"https://github.com/glentner/progressbar","commit_stats":null,"previous_names":["glentner/progressbar"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/glentner/progressbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fprogressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fprogressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fprogressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fprogressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glentner","download_url":"https://codeload.github.com/glentner/progressbar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fprogressbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271797088,"owners_count":24823127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T10:56:18.029Z","updated_at":"2025-08-24T05:20:57.683Z","avatar_url":"https://github.com/glentner.png","language":"Python","readme":"pb\n==\n\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\u0026nbsp;\n[![Version](https://img.shields.io/github/v/release/glentner/progressbar?sort=semver)](https://github.com/glentner/progressbar)\n\u0026nbsp;\n[![Python Version](https://img.shields.io/badge/Python-3.12+-blue.svg)](https://www.python.org/downloads)\n\n\nA simple command-line progress bar for streaming files or lines of text.\n\nThis is simply an alternate front-end to [tqdm](https://github.com/tqdm/tqdm).\n\nInstall\n-------\n\nThe well-known [uv](https://docs.astral.sh/uv/) utility is the best way to install this program.\n\n```sh\nuv tool install git+https://github.com/glentner/progressbar\n```\n\nUsage\n-----\n\nUse `pb --help` to get usage and help on options.\nThe default behavior is to display a progress bar of bytes streamed.\nPositional arguments are paths to files; without any arguments we stream from `stdin`.\nWe get the total bytes expected by asking the file system for the size of the files.\nIf streaming from `stdin` we simply display current stats without the progress bar.\n\nThe output is entirely provided by [tqdm](https://github.com/tqdm/tqdm).\nTo count lines instead of bytes, use `--lines`.\nWithout a `--total` we only display stats as with `stdin`.\nThe `-b`, `--buffer` option is allowed in either case.\nWe choose an extremely large default buffer size on purpose.\n\nSpecifying counts can be explicit or with a suffix, e.g., `16K` or `10M`.\nSpecifying buffer size can be explicit or with a suffix, e.g., `512KB`.\n\nEnable logging messages as an alternative to the progress bar by\nusing either `-v` or `-d` for INFO and DEBUG levels, respectively.\nFor lots of small files `-v` is appropriate; for a few large files,\n`-d` will show individual buffer writes.\n\nWhy\n---\n\nI love [tqdm](https://github.com/tqdm/tqdm) but the default behavior makes\nstreaming files very tedious, this is a shorter syntax and automatically\ncomputes the total size of files on disk.\n\nExamples\n--------\n\nStream log messages from directory:\n\n```sh\n$ ls messages/*.gz | sort | xargs pb | gunzip | grep -E '^2023-' | ...\nmessages/myapp.20230713.gz:  23%|█████            | 290M/1.24G [00:19\u003c01:29, 11.4MB/s]\n```\n\nStream 1 billion rows from file ([https://1brc.dev](https://1brc.dev)):\n\n```sh\n$ pb measurements.txt -l -t 1B | ./1brc.sh\nmeasurements.txt:  37%|███████████▏           | 371M/1.00G [00:05\u003c00:09, 69.3MLines/s]\n```\n\nContributing\n------------\n\nThis is finished software made for a narrow purpose.\nIf you find a bug or think something obvious is missing,\nplease feel free to open an issue or pull request with a fix.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglentner%2Fprogressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglentner%2Fprogressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglentner%2Fprogressbar/lists"}