{"id":31677230,"url":"https://github.com/moshiba/pbar","last_synced_at":"2025-10-08T05:07:27.406Z","repository":{"id":95635645,"uuid":"210865933","full_name":"moshiba/pbar","owner":"moshiba","description":"Low overhead C++ progress bar","archived":false,"fork":false,"pushed_at":"2020-04-20T03:00:00.000Z","size":244,"stargazers_count":8,"open_issues_count":12,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-16T11:58:36.290Z","etag":null,"topics":["cpp","hacktoberfest","progress-bar","progressbar"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moshiba.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}},"created_at":"2019-09-25T14:29:59.000Z","updated_at":"2024-01-16T11:58:41.804Z","dependencies_parsed_at":"2023-03-11T14:46:00.770Z","dependency_job_id":null,"html_url":"https://github.com/moshiba/pbar","commit_stats":null,"previous_names":["moshiba/pbar"],"tags_count":7,"template":null,"template_full_name":null,"purl":"pkg:github/moshiba/pbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshiba%2Fpbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshiba%2Fpbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshiba%2Fpbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshiba%2Fpbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moshiba","download_url":"https://codeload.github.com/moshiba/pbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshiba%2Fpbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278891753,"owners_count":26063858,"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-10-08T02:00:06.501Z","response_time":56,"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":["cpp","hacktoberfest","progress-bar","progressbar"],"created_at":"2025-10-08T05:02:16.603Z","updated_at":"2025-10-08T05:07:27.399Z","avatar_url":"https://github.com/moshiba.png","language":"C++","readme":"# pbar  ![GitHub](https://img.shields.io/github/license/hsuantinglu/pbar) ![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/HsuanTingLu/pbar?include_prereleases)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/HsuanTingLu/pbar)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c0335227c419495fac02ce71c83c60d6)](https://www.codacy.com/manual/HsuanTingLu/pbar?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=HsuanTingLu/pbar\u0026amp;utm_campaign=Badge_Grade)\n\nLow overhead C++ progress bar with a friendly interface\n\n![runtime-demo-GIF](docs/img/runtime_demo.gif)\n\n## Table of Contents\n- [Quickstart](#quickstart)\n- [Install](#install)\n\n\u003ca name=\"quickstart\"\u003e\u003c/a\u003e\n## Quickstart\n\nThe `pbar` library is very easy to use,\nwith a simple constructor `ProgressBar(${description}, ${total})` and you're ready to go.\n\nUpdating the bar is as easy as the construction process, `update(${number})` increases/decreases the bar to whatever number you want.\n\nthere are example codes in the `examples/` directory, see [Install](#install) for more information.\n\n### Simple example\n```cpp\n#include \"pbar.hpp\"\nusing namespace pbar;\n\nint main() {\n    ProgressBar progressbar(\"outer\", 10);\n    for (int i = 0; i != 10; ++i) {\n        progressbar.update();\n    }\n}\n```\n\n### Nested progress bars\n```cpp\n#include \"pbar.hpp\"\nusing namespace pbar;\nconstexpr int test_size1 = 10;\nconstexpr int test_size2 = 10000000;\n\nint main() {\n    ProgressBar progressbar1(\"outer\", test_size1, true);\n    for (int i = 0; i != test_size1; ++i) {\n        ProgressBar progressbar2(\"inner\", test_size2, true);\n        for (int j = 0; j != test_size2; ++j) {\n            progressbar2.update();\n        }\n        progressbar1.update();\n    }\n}\n```\n\n\u003ca name=\"install\"\u003e\u003c/a\u003e\n## Install\nCMake is the official build system.\n\n### Requirements\n\n- C++11 or higher\n- [Ansi-Escape](https://github.com/HsuanTingLu/ansi-escape) library for terminal render control\n- CMake 3.5 or higher\n\n```bash\nmkdir build; cd build/\n\n# Config and build\ncmake .. \u0026\u0026 make driver\n\n# execute example\n./examples/driver\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshiba%2Fpbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoshiba%2Fpbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshiba%2Fpbar/lists"}