{"id":15495673,"url":"https://github.com/probablykasper/csv-pipeline","last_synced_at":"2026-06-07T02:31:40.761Z","repository":{"id":65208382,"uuid":"583607314","full_name":"probablykasper/csv-pipeline","owner":"probablykasper","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-05T01:18:16.000Z","size":162,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T05:24:34.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/probablykasper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["probablykasper"]}},"created_at":"2022-12-30T09:55:13.000Z","updated_at":"2022-12-31T08:08:17.000Z","dependencies_parsed_at":"2023-02-10T13:30:48.626Z","dependency_job_id":null,"html_url":"https://github.com/probablykasper/csv-pipeline","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablykasper%2Fcsv-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablykasper%2Fcsv-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablykasper%2Fcsv-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablykasper%2Fcsv-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probablykasper","download_url":"https://codeload.github.com/probablykasper/csv-pipeline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482033,"owners_count":19969847,"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-10-02T08:18:29.166Z","updated_at":"2025-03-02T08:43:39.384Z","avatar_url":"https://github.com/probablykasper.png","language":"Rust","funding_links":["https://github.com/sponsors/probablykasper"],"categories":[],"sub_categories":[],"readme":"# CSV Pipeline\n\nCSV processing library inspired by [csvsc](https://crates.io/crates/csvsc)\n\n[![Crates.io](https://img.shields.io/crates/v/csv-pipeline.svg)](https://crates.io/crates/csv-pipeline)\n[![Documentation](https://docs.rs/csv-pipeline/badge.svg)](https://docs.rs/csv-pipeline)\n\n## Example\n\n```rs\nuse csv_pipeline::{Pipeline, Transformer};\n\nlet source = \"\\\n  Person,Score\\n\\\n  A,1\\n\\\n  A,8\\n\\\n  B,3\\n\\\n  B,4\\n\";\nlet reader = csv::Reader::from_reader(source.as_bytes());\nlet csv = Pipeline::from_reader(reader)\n  .unwrap()\n  .map(|_headers, row| Ok(row))\n  // Transform into a new csv\n  .transform_into(|| {\n    vec![\n      // Keep every Person\n      Transformer::new(\"Person\").keep_unique(),\n      // Sum the scores into a \"Total score\" column\n      Transformer::new(\"Total score\").from_col(\"Score\").sum(0),\n    ]\n  })\n  .collect_into_string()\n  .unwrap();\n\nassert_eq!(\n  csv,\n  \"Person,Total score\\n\\\n    A,9\\n\\\n    B,7\\n\"\n);\n```\n\n## Dev Instructions\n\n### Get started\n\nInstall [Rust](https://www.rust-lang.org).\n\nRun tests:\n```\ncargo test\n```\n\n### Releasing a new version\n\n1. Update `CHANGELOG.md`\n2. Bump the version number in `Cargo.toml`\n3. Run `cargo test`\n4. Run `cargo publish`\n5. Create a git tag in format `v#.#.#`\n6. Create GitHub release with release notes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablykasper%2Fcsv-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobablykasper%2Fcsv-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablykasper%2Fcsv-pipeline/lists"}