{"id":20511573,"url":"https://github.com/10sr/tbar","last_synced_at":"2025-12-02T21:17:02.415Z","repository":{"id":11199720,"uuid":"13582789","full_name":"10sr/tbar","owner":"10sr","description":"Visualize values with ascii characters in terminal","archived":false,"fork":false,"pushed_at":"2014-02-08T05:39:31.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T20:44:46.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"node-webot/wechat-api","license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/10sr.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}},"created_at":"2013-10-15T07:00:08.000Z","updated_at":"2014-02-08T05:39:32.000Z","dependencies_parsed_at":"2022-09-03T02:01:19.145Z","dependency_job_id":null,"html_url":"https://github.com/10sr/tbar","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/10sr%2Ftbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Ftbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Ftbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10sr%2Ftbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10sr","download_url":"https://codeload.github.com/10sr/tbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242117648,"owners_count":20074434,"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":[],"created_at":"2024-11-15T20:36:25.945Z","updated_at":"2025-12-02T21:16:57.350Z","avatar_url":"https://github.com/10sr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"tbar\n====\n\nVisualize values with ascii characters in terminal.\n\n\nSynopsis and Options\n--------\n\n    usage: tbar [-h] [-r REGEXP] [-c COMMENT] [-s SEP] [-f FIELD] [-m MAX]\n                [-l LENGTH] [-v]\n                [filename]\n    \n    Visualize values with ascii characters in terminal\n    \n    positional arguments:\n      filename              filename for input. If omitted read from stdin\n    \n    optional arguments:\n      -h, --help            show this help message and exit\n      -r REGEXP, --regexp REGEXP\n                            regular expression to extract key and value. When this\n                            option is given, -s and -f options are ignored\n      -c COMMENT_START, --comment COMMENT_START\n                            string that leading commnent strings, defaults to \"#\"\n      -s SEP, --sep SEP     separator of field\n      -f NUM,NUM, --field NUM,NUM\n                            numbers of field to use as key and value, default to\n                            1,2\n      -m MAX, --max MAX     value for max\n      -l LENGTH, --length LENGTH\n                            length of bars, defaults to 50\n      -v, --vertical        print bars vertically\n\n\n\nUsage Example\n-------------\n\nWhen the content of `sample/a.txt` is like:\n\n    # sample data\n    a 80\n    bcdef 40\n    ghi 20\n    jk 90\n\nthen the command\n\n    ./bin/tbar sample/a.txt\n\nwill print bars as:\n\n                                                            90.0\n        a|********************************************      |\n    bcdef|**********************                            |\n      ghi|***********                                       |\n       jk|**************************************************|\n\nWhen specifying the option `--vertical`, tbar prints bars vertically:\n\n    $ ./bin/tbar --vertical --length 10 sample/a.txt\n    90.0----\n           *\n           *\n        *  *\n        *  *\n        *  *\n        *  *\n        ** *\n        ** *\n        ****\n        ****\n        ----\n        abgj\n         chk\n         di\n         e\n         f\n\nSpecifying Field to Show\n------------------------\n\nWhen extracting data from input line, there are two ways: cut-like options and\nregular expression.\nUsing cut-like options is an easy way. For example, when input lines are\n\n    # sample data\n    a 80\n    bcdef 40\n    ghi 20\n    jk 90\n\nthen you can use the first field as key (name) and the second as value by\nspecifying the options like\n\n    --sep \" \" --field 1,2\n\n(Actually this options are set by default so you do not need these options for\nthis simple case)\nIf you want to deal with rather complicated input, you can use regular\nexpression with symbolic groups instead. For example, specifying\n\n    --regexp '^(?P\u003ckey\u003e[^ ]*) *(?P\u003cvalue\u003e[^ ]*)'\n\nmeans the same thing as previous example by cut-like options.\n\n\nLicense\n-------\n\nThis software is released under Public Domain. For more information, see\n'LICENSE'.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10sr%2Ftbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10sr%2Ftbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10sr%2Ftbar/lists"}