{"id":26254481,"url":"https://github.com/bilal-fazlani/splitcsv","last_synced_at":"2025-06-12T15:38:26.612Z","repository":{"id":56557293,"uuid":"308880306","full_name":"bilal-fazlani/splitcsv","owner":"bilal-fazlani","description":"A cli tool to split csv files","archived":false,"fork":false,"pushed_at":"2020-11-10T17:54:01.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T02:12:19.483Z","etag":null,"topics":["csv","file","splitter","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bilal-fazlani.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":"2020-10-31T12:47:54.000Z","updated_at":"2020-11-10T17:54:04.000Z","dependencies_parsed_at":"2022-08-15T20:50:55.618Z","dependency_job_id":null,"html_url":"https://github.com/bilal-fazlani/splitcsv","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bilal-fazlani/splitcsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2Fsplitcsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2Fsplitcsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2Fsplitcsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2Fsplitcsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bilal-fazlani","download_url":"https://codeload.github.com/bilal-fazlani/splitcsv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2Fsplitcsv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259494873,"owners_count":22866583,"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":["csv","file","splitter","utility"],"created_at":"2025-03-13T18:28:43.609Z","updated_at":"2025-06-12T15:38:26.583Z","avatar_url":"https://github.com/bilal-fazlani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV-Split\n_https://pypi.org/project/csv-split/_\n\n```bash\npip install csv-split\n```\n\n## Vertical splitting (columns)\nSplits a given CSV file vertically.\nAccepts either a batch-size, or a split-pattern to create multiple files\nfrom a single files. All files will contain different columns of original csv.\nOrder of columns will be maintained.\n\n## Horizontal splitting (rows)\n\nNot supported yet\n\n## Usage\n\nThe below command will take large-file.csv and split it vertically into 3 files.\nFirst file will have 10 columns, 2nd file will have 5, and the 3rd will have 12.\nIf there are more columns in the original file, they will be ignored.   \n\n```bash\ncsv-split -i ~/Downloads/large-file.csv -p 10,5,12\n```\n\nInstead of split-pattern, you can also specify batch size.\n\n```bash\ncsv-split -i ~/Downloads/large-file.csv -b 7\n```\n\nBy default, all the output files will be stored in a new directory called \n`output`. Generated file names will have index number appended. For example,\n`large-file_1.csv`, `large-file_2.csv`, ...\n\nIf you want to change the output directory, you can use `-o` option as shown below.\n\n \n```bash\ncsv-split -i ~/Downloads/large-file.csv -b 10 -o ~/Downloads/splitted-data/\n```\n\nIf this directory does not exist, it will be created.\n\nThis will create csv files and each csv file will contain 7 columns. Number of output files will\ndepend on number of columns in input files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilal-fazlani%2Fsplitcsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilal-fazlani%2Fsplitcsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilal-fazlani%2Fsplitcsv/lists"}