{"id":15724416,"url":"https://github.com/cldellow/csv2parquet","last_synced_at":"2025-08-21T15:31:16.731Z","repository":{"id":50204983,"uuid":"126756636","full_name":"cldellow/csv2parquet","owner":"cldellow","description":"Convert a CSV to a parquet file.","archived":false,"fork":false,"pushed_at":"2022-12-08T06:34:48.000Z","size":100,"stargazers_count":64,"open_issues_count":12,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-16T04:13:16.772Z","etag":null,"topics":["apache-arrow","apache-parquet","csv","parquet"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cldellow.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}},"created_at":"2018-03-26T01:22:23.000Z","updated_at":"2024-08-21T01:55:56.000Z","dependencies_parsed_at":"2023-01-24T16:30:45.042Z","dependency_job_id":null,"html_url":"https://github.com/cldellow/csv2parquet","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/cldellow%2Fcsv2parquet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldellow%2Fcsv2parquet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldellow%2Fcsv2parquet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldellow%2Fcsv2parquet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cldellow","download_url":"https://codeload.github.com/cldellow/csv2parquet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230520391,"owners_count":18238948,"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":["apache-arrow","apache-parquet","csv","parquet"],"created_at":"2024-10-03T22:16:33.735Z","updated_at":"2024-12-20T01:14:34.765Z","avatar_url":"https://github.com/cldellow.png","language":"Python","readme":"# csv2parquet\n\n[![Build Status](https://travis-ci.org/cldellow/csv2parquet.svg?branch=master)](https://travis-ci.org/cldellow/csv2parquet)\n[![codecov](https://codecov.io/gh/cldellow/csv2parquet/branch/master/graph/badge.svg)](https://codecov.io/gh/cldellow/csv2parquet)\n\nConvert a CSV to a parquet file. You may also find [sqlite-parquet-vtable](https://github.com/cldellow/sqlite-parquet-vtable) or\n[parquet-metadata](https://github.com/cldellow/parquet-metadata) useful.\n\n## Installing\n\nIf you just want to use the tool:\n\n```\nsudo pip install pyarrow csv2parquet\n```\n\nIf you want to clone the repo and work on the tool, install its dependencies via pipenv:\n\n```\npipenv install\n```\n\n## Usage\n\nNext, create some Parquet files. The tool supports CSV and TSV files.\n\n```\nusage: csv2parquet [-h] [-n ROWS] [-r ROW_GROUP_SIZE] [-o OUTPUT] [-c CODEC]\n                   [-i INCLUDE [INCLUDE ...] | -x EXCLUDE [EXCLUDE ...]]\n                   [-R RENAME [RENAME ...]] [-t TYPE [TYPE ...]]\n                   csv_file\n\npositional arguments:\n  csv_file              input file, can be CSV or TSV\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -n ROWS, --rows ROWS  The number of rows to include, useful for testing.\n  -r ROW_GROUP_SIZE, --row-group-size ROW_GROUP_SIZE\n                        The number of rows per row group.\n  -o OUTPUT, --output OUTPUT\n                        The parquet file\n  -c CODEC, --codec CODEC\n                        The compression codec to use (brotli, gzip, snappy,\n                        zstd, none)\n  -i INCLUDE [INCLUDE ...], --include INCLUDE [INCLUDE ...]\n                        Include the given columns (by index or name)\n  -x EXCLUDE [EXCLUDE ...], --exclude EXCLUDE [EXCLUDE ...]\n                        Exclude the given columns (by index or name)\n  -R RENAME [RENAME ...], --rename RENAME [RENAME ...]\n                        Rename a column. Specify the column to be renamed and\n                        its new name, eg: 0=age or person_age=age\n  -t TYPE [TYPE ...], --type TYPE [TYPE ...]\n                        Parse a column as a given type. Specify the column and\n                        its type, eg: 0=bool? or person_age=int8. Parse errors\n                        are fatal unless the type is followed by a question\n                        mark. Valid types are string (default), base64, bool,\n                        float32, float64, int8, int16, int32, int64, timestamp\n```\n\n## Testing\n\n```\npylint csv2parquet\npytest\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldellow%2Fcsv2parquet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcldellow%2Fcsv2parquet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldellow%2Fcsv2parquet/lists"}