{"id":47618489,"url":"https://github.com/lalvarezt/string_pipeline","last_synced_at":"2026-04-05T10:04:17.837Z","repository":{"id":296601757,"uuid":"993920105","full_name":"lalvarezt/string_pipeline","owner":"lalvarezt","description":"Powerful CLI tool and Rust library for chainable string transformations using intuitive template syntax 🔗","archived":false,"fork":false,"pushed_at":"2026-03-21T11:46:57.000Z","size":611,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-21T13:51:29.573Z","etag":null,"topics":["automation","cli","pipeline","regex","rust","string-processing","text-transformation"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/string_pipeline","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/lalvarezt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-31T20:05:16.000Z","updated_at":"2026-03-21T11:47:01.000Z","dependencies_parsed_at":"2025-06-16T09:26:26.484Z","dependency_job_id":"de995fd7-0200-46bd-872d-cc948de31fcb","html_url":"https://github.com/lalvarezt/string_pipeline","commit_stats":null,"previous_names":["lalvarezt/string_processor","lalvarezt/string_pipeline"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/lalvarezt/string_pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalvarezt%2Fstring_pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalvarezt%2Fstring_pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalvarezt%2Fstring_pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalvarezt%2Fstring_pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lalvarezt","download_url":"https://codeload.github.com/lalvarezt/string_pipeline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalvarezt%2Fstring_pipeline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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":["automation","cli","pipeline","regex","rust","string-processing","text-transformation"],"created_at":"2026-04-01T21:48:16.695Z","updated_at":"2026-04-01T21:48:17.670Z","avatar_url":"https://github.com/lalvarezt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔗 String Pipeline\n\n[![Crates.io](https://img.shields.io/crates/v/string_pipeline.svg)](https://crates.io/crates/string_pipeline)\n[![Docs.rs](https://docs.rs/string_pipeline/badge.svg)](https://docs.rs/string_pipeline)\n[![CI](https://github.com/lalvarezt/string_pipeline/actions/workflows/ci.yml/badge.svg)](https://github.com/lalvarezt/string_pipeline/actions)\n[![License](https://img.shields.io/crates/l/string_pipeline.svg)](https://github.com/lalvarezt/string_pipeline/blob/main/LICENSE)\n\n`string_pipeline` is a Rust library for string transformation pipelines.\n\nThe `string-pipeline` CLI is a companion interface for exercising the same template engine outside your Rust code (quick\nchecks, validation, and debug tracing).\n\nTemplates chain operations such as split, map, filter, replace, and join:\n\n```text\n{split:,:..|map:{upper}|join:-}\n```\n\n## Contents\n\n- [Why Not awk/sed/etc](#why-not-awksedetc)\n- [Examples](#examples)\n- [Installation](#installation)\n- [Quick Start](#quick-start)\n- [Documentation](#documentation)\n- [Development](#development)\n- [License](#license)\n\n## Why Not awk/sed/etc\n\n`awk`, `sed`, and similar tools are strong choices and remain the right default for many shell tasks.\n\n`string_pipeline` is intended for library-first workflows where text transformations live in Rust code and use an\nexplicit template format. The CLI exists to run that same engine externally during development and troubleshooting.\n\nUse `string_pipeline` when you want:\n\n- Templates checked into a Rust project and reused directly in application code\n- One template format shared by Rust API and CLI checks\n- Built-in template validation (`--validate`) and execution tracing (`--debug`)\n- Structured operation chains (`split|map|filter|join`) instead of shell-specific one-liners\n- Per-item sub-pipelines with `map:{...}` and explicit range handling\n\nUse `awk`/`sed` when you want:\n\n- Quick one-off line edits in shell scripts\n- Full control of custom parsing/state logic in a single script\n- Minimal dependency footprint on systems where those tools are already standard\n\nCommon library-side use cases:\n\n- Normalize or reformat delimited text\n- Extract fields with ranges or regex\n- Apply per-item transformations with `map`\n- Use mixed literal/template output (`\"Name: {split: :0}\"`)\n\n## Examples\n\nExamples below use the CLI for brevity. The same templates are parsed and executed by the Rust library.\n\n```bash\n# Extract and sort email domains\nstring-pipeline \"{split:,:..|map:{regex_extract:@(.+):1}|sort}\" \"john.doe@email.com,jane.smith@company.org\"\n# company.org,email.com\n\n# Normalize names\nstring-pipeline '{split:,:..|map:{trim|upper|append:!}}' \"  john  , jane , bob  \"\n# JOHN!,JANE!,BOB!\n\n# Keep Python files and print one per line\nstring-pipeline '{split:,:..|filter:\\.py$|sort|map:{prepend:- }|join:\\n}' 'app.py,readme.md,test.py,data.json'\n# - app.py\n# - test.py\n```\n\n## Installation\n\n### Library (primary)\n\nAdd to `Cargo.toml`:\n\n```toml\n[dependencies]\nstring_pipeline = \"0.13.4\"\n```\n\n### CLI (companion)\n\nOptional, for running templates outside your Rust program:\n\n```bash\ncargo install string_pipeline\n```\n\nBuild from source:\n\n```bash\ngit clone https://github.com/lalvarezt/string_pipeline.git\ncd string_pipeline\ncargo install --path .\n```\n\n## Quick Start\n\n### Rust API (primary)\n\n```rust\nuse string_pipeline::Template;\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let template = Template::parse(\"{split:,:..|map:{upper}|join:-}\")?;\n    let result = template.format(\"hello,world,rust\")?;\n    assert_eq!(result, \"HELLO-WORLD-RUST\");\n    Ok(())\n}\n```\n\n### CLI (companion)\n\nUse the CLI to test the same templates externally.\n\n```bash\n# Positional input\nstring-pipeline '{split:,:..|map:{upper}|join:-}' 'hello,world,rust'\n# HELLO-WORLD-RUST\n\n# stdin input\nprintf 'hello,world\\n' | string-pipeline '{split:,:..|map:{upper}|join:-}'\n# HELLO-WORLD\n\n# Validate template\nstring-pipeline --validate '{split:,:..|map:{upper}|join:-}'\n```\n\n### Debug view (CLI)\n\n```bash\nstring-pipeline '{!split:,:..|map:{upper}|join:-}' 'hello,world'\n```\n\nExample debug excerpt (`stderr`):\n\n```text\nDEBUG: 📂 MULTI-TEMPLATE\nDEBUG: ├── 🏁 MULTI-TEMPLATE START\nDEBUG: ├── Template: \"{!split:,:..|map:{upper}|join:-}\"\nDEBUG: ├── ➡️ Input: \"hello,world\"\nDEBUG: ├── 📊 SECTION 1/1: [template: split(',', ..) | map { operations: [upper] } | join { sep: \"-\" }]\nDEBUG: ├── 📂 Main Pipeline\nDEBUG: │   ├── 🚀 PIPELINE START: 3 operations\nDEBUG: │   ├── 1. Split(',')\nDEBUG: │   ├── 2. Map(1)\nDEBUG: │   ├── 3. Join('-')\nDEBUG: │   └── ... per-step results and timings ...\nDEBUG: └── Cache stats: ...\n```\n\nFinal result (`stdout`):\n\n```text\nHELLO-WORLD\n```\n\n## Documentation\n\n- `docs/template-system.md`\n- `docs/command-line-options.md`\n- `docs/debug-system.md`\n- `docs/benchmarking.md`\n\nAPI docs: \u003chttps://docs.rs/string_pipeline\u003e\n\n## Development\n\n```bash\n# Run tests\ncargo test\n\n# Run benchmarks\ncargo bench\n\n# Build benchmark helper binary\ncargo build --release --bin string-pipeline-bench\n./target/release/string-pipeline-bench\n```\n\n## License\n\nMIT. See `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalvarezt%2Fstring_pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flalvarezt%2Fstring_pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalvarezt%2Fstring_pipeline/lists"}