{"id":18687921,"url":"https://github.com/tenmax/pq","last_synced_at":"2025-04-12T05:31:01.471Z","repository":{"id":134627501,"uuid":"65525218","full_name":"tenmax/pq","owner":"tenmax","description":"A tool to transform unstructured text to csv by regular expression","archived":false,"fork":false,"pushed_at":"2018-11-14T00:30:54.000Z","size":58,"stargazers_count":30,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T00:51:22.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenmax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-08-12T05:16:42.000Z","updated_at":"2018-11-14T00:30:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f34d8149-1dba-48bc-8dd6-644cd9993073","html_url":"https://github.com/tenmax/pq","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenmax%2Fpq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenmax%2Fpq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenmax%2Fpq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenmax%2Fpq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenmax","download_url":"https://codeload.github.com/tenmax/pq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248523639,"owners_count":21118535,"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-07T10:34:54.895Z","updated_at":"2025-04-12T05:31:01.442Z","avatar_url":"https://github.com/tenmax.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pq\n\nA tool to transform unstructured text to csv by regular expression.\n\n# Sample\n\nIf input is (test.txt)\n\n```html\ntest=abc\u0026foo=bar1\ntest=def\u0026foo=bar2\ntest=efg\u0026foo=bar3\n```\n\nIssue this command\n\n```bash\npq -R 'test=(?\u003ctest\u003e[a-zA-z]*)\u0026foo=(?\u003cfoo\u003e[a-zA-z]*)' -c test,foo test.txt\n```\n\nthen output will be\n\n```\nabc,bar\ndef,bar\nefg,bar\n```\n\nIn the regular expression, we define two groups 'test', 'foo'. And we translate the group to csv columns.\n\n# Usage\n\n```bash\nusage: pq -R \u003cregular-expression\u003e -c \u003ccolumnlist\u003e [\u003cfile\u003e ...]\n -c \u003carg\u003e   column list. Separated by comma\n -g \u003carg\u003e   group by list. Separated by comma\n -H         with CSV header\n -P \u003carg\u003e   level of parallelism\n -R \u003carg\u003e   the regular expression with groups\n```\n\n# Download\n\nPlease download the binary from the [release](https://github.com/tenmax/pq/releases) tag.\n\n## Install by Homebrew in Mac\n```bash\nbrew update\nbrew untap tenmax/azure\nbrew tap tenmax/azure\nbrew install pq\n```\n\n# Reference\n\nThis tool is powered by [poppy](http://tenmax.github.io/poppy/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenmax%2Fpq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenmax%2Fpq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenmax%2Fpq/lists"}