{"id":25694276,"url":"https://github.com/rdavid/ptable","last_synced_at":"2025-09-02T11:37:41.045Z","repository":{"id":114397595,"uuid":"47252694","full_name":"rdavid/ptable","owner":"rdavid","description":"The C++ template for printing table of string and numeric data.","archived":false,"fork":false,"pushed_at":"2025-04-08T15:18:12.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T16:26:39.984Z","etag":null,"topics":["c-plus-plus","pretty-printer"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdavid.png","metadata":{"files":{"readme":"README.adoc","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":"2015-12-02T10:03:07.000Z","updated_at":"2025-04-08T15:18:15.000Z","dependencies_parsed_at":"2024-10-31T00:20:51.086Z","dependency_job_id":"04736ecb-c761-4ccc-824a-7c8def4cc133","html_url":"https://github.com/rdavid/ptable","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/rdavid%2Fptable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdavid%2Fptable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdavid%2Fptable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdavid%2Fptable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdavid","download_url":"https://codeload.github.com/rdavid/ptable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250587205,"owners_count":21454787,"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":["c-plus-plus","pretty-printer"],"created_at":"2025-02-24T23:52:01.644Z","updated_at":"2025-09-02T11:37:41.024Z","avatar_url":"https://github.com/rdavid.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"// Settings:\n:toc: macro\n:!toc-title:\n// URLs:\n:img-hoc: https://hitsofcode.com/github/rdavid/ptable?branch=master\u0026label=hits%20of%20code\n:img-license: https://img.shields.io/github/license/rdavid/ptable?color=blue\u0026labelColor=gray\u0026logo=freebsd\u0026logoColor=lightgray\u0026style=flat\n:img-test: https://github.com/rdavid/ptable/actions/workflows/test.yml/badge.svg\n:url-actionlint: https://github.com/rhysd/actionlint\n:url-base: https://github.com/rdavid/shellbase/blob/master/lib/base.sh\n:url-checkmake: https://github.com/mrtazz/checkmake\n:url-cv: http://cv.rabkin.co.il\n:url-hadolint: https://github.com/hadolint/hadolint\n:url-hoc: https://hitsofcode.com/view/github/rdavid/ptable?branch=master\n:url-goredo: http://www.goredo.cypherpunks.su/Install.html\n:url-license: https://github.com/rdavid/ptable/blob/master/LICENSES/0BSD.txt\n:url-redo: http://cr.yp.to/redo.html\n:url-reuse: https://github.com/fsfe/reuse-action\n:url-shellcheck: https://github.com/koalaman/shellcheck\n:url-shfmt: https://github.com/mvdan/sh\n:url-test: https://github.com/rdavid/ptable/actions/workflows/test.yml\n:url-typos: https://github.com/crate-ci/typos\n:url-vale: https://vale.sh\n:url-yamllint: https://github.com/adrienverge/yamllint\n\n= Pretty Table\n\nimage:{img-test}[test,link={url-test}]\nimage:{img-hoc}[hits of code,link={url-hoc}]\nimage:{img-license}[license,link={url-license}]\n\ntoc::[]\n\n== About\n\nThe C++ template is used to print data in a formatted table.\nIt calculates the proper indentations once all the fields are known.\nHere is an example code snippet to demonstrate its usage:\n\n[,c++]\n----\nCPrettyTable\u003cint, const char*, double\u003e tbl(\"num\", \"name\", \"score\");\nfor (int i = 0; i \u003c 5; ++i) {\n  tbl.Add(i + 1, \"FooBar\", 2.5 * (i + 1));\n}\ntbl.SetCaption(\"FooBar\");\ntbl.Dump(std::cerr);\n----\nThe code prints the following line to the standard error stream.\n[,sh]\n----\n+-----+[ FooBar ]------+\n| num | name   | score |\n+-----+--------+-------+\n|   1 | FooBar |   2.5 |\n|   2 | FooBar |     5 |\n|   3 | FooBar |   7.5 |\n|   4 | FooBar |    10 |\n|   5 | FooBar |  12.5 |\n+-----+--------+-------+\n----\n\n== Build\n\nThe project uses Daniel J. Bernstein's build system {url-redo}[`redo`].\nYou can install Sergey Matveev's {url-goredo}[`goredo`] implementation.\n\n== Test\n\n`redo test` runs unit tests.\n`redo lint` applies the following linters to the source files:\n{url-actionlint}[`actionlint`],\n{url-checkmake}[`checkmake`],\n{url-reuse}[`reuse`],\n{url-shellcheck}[`shellcheck`],\n{url-shfmt}[`shfmt`],\n{url-typos}[`typos`],\n{url-yamllint}[`yamllint`].\n\n== License\n\n`ptable` is copyright {url-cv}[David Rabkin] and available under a\n{url-license}[Zero-Clause BSD license].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdavid%2Fptable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdavid%2Fptable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdavid%2Fptable/lists"}