{"id":16709067,"url":"https://github.com/aminnj/cpptqdm","last_synced_at":"2025-04-09T23:17:29.917Z","repository":{"id":44872710,"uuid":"135002416","full_name":"aminnj/cpptqdm","owner":"aminnj","description":"(unofficial) tqdm-like single header c++ pretty progress bar","archived":false,"fork":false,"pushed_at":"2024-06-04T09:25:05.000Z","size":573,"stargazers_count":217,"open_issues_count":3,"forks_count":32,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T23:17:05.455Z","etag":null,"topics":["cpp","progressbar","tqdm"],"latest_commit_sha":null,"homepage":"","language":"C++","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/aminnj.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":"2018-05-26T23:49:59.000Z","updated_at":"2025-03-23T04:43:15.000Z","dependencies_parsed_at":"2024-10-27T11:50:42.801Z","dependency_job_id":"3abaf145-1f21-4779-9b63-dfe1173a2d49","html_url":"https://github.com/aminnj/cpptqdm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnj%2Fcpptqdm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnj%2Fcpptqdm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnj%2Fcpptqdm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnj%2Fcpptqdm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aminnj","download_url":"https://codeload.github.com/aminnj/cpptqdm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125593,"owners_count":21051771,"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","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","progressbar","tqdm"],"created_at":"2024-10-12T19:48:22.512Z","updated_at":"2025-04-09T23:17:29.886Z","avatar_url":"https://github.com/aminnj.png","language":"C++","readme":"## cpptqdm\n\nPython `tqdm` is nice. Need something similar for C++. That's this.\n\n#### Simple usage\n```cpp\n#include \"tqdm.h\"\n\ntqdm bar;\nfor(int i = 0; i \u003c N; i++) {\n    bar.progress(i, N);\n    // stuff\n}\nbar.finish();\n```\n\n#### Looks like\n```\n █████████████████▍                  | 46.2%  [4200000 | 103.66 kHz | 35s\u003c47s]\n```\n\n#### See it live\n```bash\ng++ test.cpp -std=c++11 \u0026\u0026 ./a.out\n```\n\n![example](images/example.gif)\n\n### FAQ\n\n#### Won't this slow down my loops?\n\nIf your loops are faster than ~200MHz, then maybe!\n\n#### Themes?\n\nYou bet. `set_theme_basic(), set_theme_line(), set_theme_circles()`.\n\n#### *For fun*, what if I wanted to use this in python?\n\nIf you have ROOT, you can do the following. Note that\ndue to the fact it uses ROOT to call C++ code in\nPython, loops faster than 1kHz start to get slowed \ndown by the overhead.\n```python\nimport time\nimport ROOT as r\n\nr.gROOT.ProcessLine(\".L tqdm.h\")\n\nbar = r.tqdm()\n\nN = 10000\nfor i in range(N):\n    bar.progress(i,N)\n    time.sleep(0.001)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminnj%2Fcpptqdm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminnj%2Fcpptqdm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminnj%2Fcpptqdm/lists"}