{"id":26650711,"url":"https://github.com/andyblarblar/cliplot","last_synced_at":"2025-03-25T02:05:54.044Z","repository":{"id":63796306,"uuid":"569109363","full_name":"andyblarblar/cliplot","owner":"andyblarblar","description":"A command line application for live-plotting data","archived":false,"fork":false,"pushed_at":"2022-11-26T05:14:09.000Z","size":27841,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T12:00:01.519Z","etag":null,"topics":["cli","cross-platform","plotting","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/andyblarblar.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":"2022-11-22T05:09:17.000Z","updated_at":"2022-12-21T05:32:18.000Z","dependencies_parsed_at":"2022-11-26T06:01:11.479Z","dependency_job_id":null,"html_url":"https://github.com/andyblarblar/cliplot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyblarblar%2Fcliplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyblarblar%2Fcliplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyblarblar%2Fcliplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyblarblar%2Fcliplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyblarblar","download_url":"https://codeload.github.com/andyblarblar/cliplot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245383036,"owners_count":20606265,"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":["cli","cross-platform","plotting","rust"],"created_at":"2025-03-25T02:05:53.464Z","updated_at":"2025-03-25T02:05:54.038Z","avatar_url":"https://github.com/andyblarblar.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cliplot \n\nA command line application for live-plotting data.\n\n![](docs/demo.gif)\n\nFeatures:\n- Live plotting from stdin\n- 1-many input channels\n- Configurable regex for each channel\n- Log data to CSV while plotting\n- Cross-platform\n\n## Usage\n\n```\ncliplot will live plot data piped into stdin. It can plot multiple channels, parse data with regex, save data to a CSV, and more.\n\nUsage: cliplot [OPTIONS]\n\nOptions:\n  -r, --regexes \u003cREGEXES\u003e\n          Regex strings to parse each channel with. If this is not specified, then a single channel that parses for `$float$` will be used.\n          \n          Each regex should be unambiguous from the others, and contain one capture group that contains a string convertable to a f64. Deliminators (such as the `$` above) are necessary to avoid numbers being cut across buffer breaks.\n\n      --csv \u003cCSV\u003e\n          Writes read data into a CSV file at path if set.\n          \n          The CSV file will contain the timestamp of each reading in ms, followed by the data and finally the channel number.\n\n  -v, --verbose...\n          More output per occurrence\n\n  -q, --quiet...\n          Less output per occurrence\n\n  -h, --help\n          Print help information (use `-h` for a summary)\n\n  -V, --version\n          Print version information\n\n```\n\n- cliplot uses [Rust regex syntax](https://docs.rs/regex/latest/regex/#syntax). Be careful with shell interpretations of symbols like $.\n- Some shells like bash have issues with multiple regex strings. In this case, just use multiple `-r` flags in order.\n- To double-check your regex is being interpreted correctly, run with -vvv. To see the data being parsed, run with -vvvv.\n\n## Examples\n\n```shell\nsome stream | cliplot\n```\nPlots data from an input stream, parsing for `\\$([+|-]?\\d*\\.?\\d*)\\$` (a float surrounded by $)\n\n---\n\n```shell\n python3 print_with_delta.py 0.0032 | cliplot -r '\\$([+|-]?\\d*\\.?\\d*)\\$' -r '%([+|-]?\\d*\\.?\\d*)%' --csv test.csv\n```\nPlots data from a [python script](test_assets/print_with_delta.py), with channel 0 deliminated by $$ and channel 1 deliminated\nby %%. Also log this data to a CSV file called test.csv.\n\n## Installation\n\n### From source\n```shell\ncargo install cliplot\n```\nor with this repo\n```shell\ncargo build --release\n# Binary is in target/release\ntarget/release/cliplot --help\n```\n\n### Binaries\nThe GitHub releases tab should have debian archives and portable Windows builds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyblarblar%2Fcliplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyblarblar%2Fcliplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyblarblar%2Fcliplot/lists"}