{"id":34110058,"url":"https://github.com/slothai/tabtools","last_synced_at":"2026-04-09T00:31:24.277Z","repository":{"id":15274218,"uuid":"18003556","full_name":"slothai/tabtools","owner":"slothai","description":"🔧 SQL for csv file in UNIX command line with awk.","archived":false,"fork":false,"pushed_at":"2022-08-06T10:05:10.000Z","size":183,"stargazers_count":16,"open_issues_count":13,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-09T23:22:01.696Z","etag":null,"topics":["awk","command-line-tool","csv","productivity","sql"],"latest_commit_sha":null,"homepage":"http://tabtools.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slothai.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"2014-03-22T06:23:57.000Z","updated_at":"2022-08-06T10:01:45.000Z","dependencies_parsed_at":"2022-07-31T02:38:21.483Z","dependency_job_id":null,"html_url":"https://github.com/slothai/tabtools","commit_stats":null,"previous_names":["pavlov99/tabtool"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/slothai/tabtools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothai%2Ftabtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothai%2Ftabtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothai%2Ftabtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothai%2Ftabtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slothai","download_url":"https://codeload.github.com/slothai/tabtools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothai%2Ftabtools/sbom","scorecard":{"id":724125,"data":{"date":"2025-08-11","repo":{"name":"github.com/slothai/tabtools","commit":"1b32bc10d753c571bffd74d9d11015cf9a364791"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T12:14:51.571Z","repository_id":15274218,"created_at":"2025-08-22T12:14:51.571Z","updated_at":"2025-08-22T12:14:51.571Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31579838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["awk","command-line-tool","csv","productivity","sql"],"created_at":"2025-12-14T18:42:54.808Z","updated_at":"2026-04-09T00:31:24.269Z","avatar_url":"https://github.com/slothai.png","language":"Python","readme":"# Tabtools - SQL \u0026 streaming processing in command line\n\n[![CircleCI Badge](https://circleci.com/gh/slothai/tabtools.svg?style=svg)](https://circleci.com/gh/slothai/tabtools)\n[![PyPi version](https://img.shields.io/pypi/v/tabtools.svg)](https://pypi.org/project/tabtools/)\n\n### Install\n\n```\npython3 -m pip install --user tabtools\n```\n\n\n### Tests\n\n```\npython -m unittest\n```\n\n### Examples\n\nDemo file consists of HSBC daily stock data.\n\n```bash\n\u003e head tabtools/tests/files/hsbc-stock.tsv\n\nDate  Open    High    Low Close   Volume\n2014-02-21  84.35   84.45   83.9    83.45   17275.0\n2014-02-24  83.85   84.4    83.75   84.35   10549.0\n2014-02-25  81.65   82.3    81.6    83.9    31186.0\n2014-02-26  81.15   81.65   81.0    81.65   18937.0\n2014-02-27  81.85   82.4    81.0    81.15   19688.0\n2014-02-28  82.25   82.45   81.8    81.9    10806.0\n2014-03-05  81.4    81.7    81.15   81.5    6101.0\n2014-03-06  81.5    81.75   81.05   81.4    8642.0\n2014-03-07  81.3    81.45   81.05   81.45   15464.0\n```\n\nConvert daily data to weekly:\n\n```bash\n\n\u003e head tabtools/tests/files/hsbc-stock.tsv \\\n    | ttreduce -g 'week=strftime(\"%U\", DateEpoch(Date))' \\\n        -s \"Date=FIRST(Date); Open=FIRST(Open); High=MAX(High)\" \\\n        -s \"Low=MIN(Low); Close=LAST(Close); Volume=SUM(Volume)\" \\\n    | ttpretty\n\n\nweek | Date       | Open  | High  | Low   | Close | Volume\n-----|------------|-------|-------|-------|-------|--------\n07   | 2014-02-21 | 84.35 | 84.45 | 83.9  | 83.45 | 17275.0\n08   | 2014-02-24 | 83.85 | 84.4  | 81.0  | 81.9  | 91166\n09   | 2014-03-05 | 81.4  | 81.75 | 81.05 | 81.45 | 30207\n```\n\nSort original file, compute 3 different EMAs (exponential moving\naverages), MACD and simple moving average indicators, select last 10\nlines and prettify output:\n\n```bash\n\u003e cat tabtools/tests/files/hsbc-stock.tsv \\\n    | ttsort -k Date \\\n    | ttmap -s \"*\" \\\n        -s \"fast_macd = EMA(Close, 12) - EMA(Close, 26); slow_macd = EMA(fast_macd, 9)\" \\\n        -s \"macd_histogram = fast_macd - slow_macd; ma50 = AVG(Close, 50)\" \\\n    | tttail \\\n    | ttpretty\n\nDate       | Open  | High  | Low   | Close | Volume  | fast_macd | slow_macd | macd_histogram | ma50\n-----------|-------|-------|-------|-------|---------|-----------|-----------|----------------|--------\n2015-07-02 | 69.55 | 69.75 | 69.3  | 70.15 | 17180.0 | -0.577588 | -0.302581 | -0.275007      | 73.7404\n2015-07-03 | 69.55 | 70.25 | 69.45 | 69.55 | 13640.0 | -0.74297  | -0.390658 | -0.352311      | 73.7224\n2015-07-06 | 67.6  | 68.85 | 67.0  | 69.55 | 34244.0 | -0.864075 | -0.485342 | -0.378734      | 73.6964\n2015-07-07 | 68.7  | 69.0  | 68.35 | 67.9  | 15676.0 | -1.08074  | -0.604421 | -0.476315      | 73.6454\n2015-07-08 | 66.2  | 67.6  | 66.0  | 68.45 | 31911.0 | -1.19429  | -0.722395 | -0.471898      | 73.5984\n2015-07-09 | 67.05 | 67.5  | 65.35 | 65.75 | 29040.0 | -1.48504  | -0.874924 | -0.610114      | 73.4374\n2015-07-10 | 68.1  | 68.45 | 67.0  | 67.75 | 31350.0 | -1.53636  | -1.00721  | -0.529149      | 73.2634\n2015-07-13 | 69.0  | 69.05 | 67.0  | 68.1  | 16601.0 | -1.53114  | -1.112    | -0.419145      | 73.0974\n2015-07-14 | 68.25 | 69.0  | 68.0  | 69.05 | 15219.0 | -1.43382  | -1.17636  | -0.257459      | 72.9294\n2015-07-15 | 69.0  | 69.45 | 68.7  | 68.55 | 9676.0  | -1.38112  | -1.21731  | -0.163806      | 72.7614\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslothai%2Ftabtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslothai%2Ftabtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslothai%2Ftabtools/lists"}