{"id":20880818,"url":"https://github.com/curtisalexander/csvkeep","last_synced_at":"2025-08-22T13:36:04.244Z","repository":{"id":80175084,"uuid":"43707948","full_name":"curtisalexander/csvkeep","owner":"curtisalexander","description":"Filter a CSV file - only keeping specific columns.","archived":false,"fork":false,"pushed_at":"2016-01-14T21:05:42.000Z","size":3,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T10:06:44.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/curtisalexander.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":"2015-10-05T19:20:44.000Z","updated_at":"2016-01-11T23:04:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"309024c1-14ff-4722-96fe-d18fe2164565","html_url":"https://github.com/curtisalexander/csvkeep","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtisalexander%2Fcsvkeep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtisalexander%2Fcsvkeep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtisalexander%2Fcsvkeep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtisalexander%2Fcsvkeep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curtisalexander","download_url":"https://codeload.github.com/curtisalexander/csvkeep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243258496,"owners_count":20262300,"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-18T07:22:16.086Z","updated_at":"2025-03-12T17:14:26.866Z","avatar_url":"https://github.com/curtisalexander.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csvkeep\nFilter a CSV file - only keeping specific columns.  Like \\*nix `cut` (or SQL `select`) but filters based on named columns.\n\n## Usage\n```\ncsvkeep.py [OPTIONS]\n\nOptions:\n  --incsv FILENAME   input csv\n  --outcsv FILENAME  output csv\n  --cols TEXT        comma separated list of columns to keep\n  --help             Show this message and exit.\n```\n\n## Assumptions\nAssumes the input CSV file has a header.\n\n## Example\n```\ncsvkeep.py --incsv /dir/to/infile.csv --outcsv /dir/to/outfile.csv --cols var1,var2,var5\n```\n\n## Requirements\n[click](http://click.pocoo.org) - command line library for Python\n\n`pip install click`\n\n## Related\n[csvkit](https://github.com/onyxfish/csvkit) - a suite of utilities for converting to and working with CSV\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurtisalexander%2Fcsvkeep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurtisalexander%2Fcsvkeep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurtisalexander%2Fcsvkeep/lists"}