{"id":13451351,"url":"https://github.com/dilshod/xlsx2csv","last_synced_at":"2025-05-12T20:50:31.014Z","repository":{"id":845484,"uuid":"571435","full_name":"dilshod/xlsx2csv","owner":"dilshod","description":"Convert xslx to csv, it is fast, and works for huge xlsx files","archived":false,"fork":false,"pushed_at":"2025-03-27T10:09:29.000Z","size":634,"stargazers_count":1717,"open_issues_count":133,"forks_count":309,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-05-10T14:12:08.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/dilshod.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2010-03-20T15:29:38.000Z","updated_at":"2025-05-07T15:05:17.000Z","dependencies_parsed_at":"2024-03-18T16:58:11.110Z","dependency_job_id":"0be1326b-3cce-47b5-b590-7b38f21912a3","html_url":"https://github.com/dilshod/xlsx2csv","commit_stats":{"total_commits":207,"total_committers":58,"mean_commits":"3.5689655172413794","dds":0.5652173913043479,"last_synced_commit":"2685227a6595e6214793bcfea3bcec9f80adab52"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilshod%2Fxlsx2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilshod%2Fxlsx2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilshod%2Fxlsx2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilshod%2Fxlsx2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dilshod","download_url":"https://codeload.github.com/dilshod/xlsx2csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253820744,"owners_count":21969575,"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-07-31T07:00:52.433Z","updated_at":"2025-05-12T20:50:30.991Z","avatar_url":"https://github.com/dilshod.png","language":"Python","readme":"\n# xlsx2csv\n\n\u003e xlsx to csv converter (http://github.com/dilshod/xlsx2csv)\n\nConverts xlsx files to csv format.\nHandles large XLSX files. Fast and easy to use.\n\n## Tested(supported) python versions:\n - 2.4\n - 2.7\n - 3.4 to 3.13\n\n## Installation:\n\n```sh\nsudo easy_install xlsx2csv\n```\n  or\n\n```sh\npip install xlsx2csv\n```\n\n\n  Also, works standalone with only the *xlsx2csv.py* script\n\n**Usage:**\n```\n xlsx2csv.py [-h] [-v] [-a] [-c OUTPUTENCODING] [-s SHEETID]\n                   [-n SHEETNAME] [-d DELIMITER] [-l LINETERMINATOR]\n                   [-f DATEFORMAT] [--floatformat FLOATFORMAT]\n                   [-i] [-e] [-p SHEETDELIMITER]\n                   [--hyperlinks]\n                   [-I INCLUDE_SHEET_PATTERN [INCLUDE_SHEET_PATTERN ...]]\n                   [-E EXCLUDE_SHEET_PATTERN [EXCLUDE_SHEET_PATTERN ...]] [-m]\n                   xlsxfile [outfile]\n```\n**positional arguments:**\n```\n  xlsxfile              xlsx file path, use '-' to read from STDIN\n  outfile               output csv file path, or directory if -s 0 is specified\n```\n**optional arguments:**\n```\n  -h, --help            show this help message and exit\n  -v, --version         show program's version number and exit\n  -a, --all             export all sheets\n  -c OUTPUTENCODING, --outputencoding OUTPUTENCODING\n                        encoding of output csv ** Python 3 only ** (default: utf-8)\n  -s SHEETID, --sheet SHEETID\n                        sheet number to convert, 0 for all\n  -n SHEETNAME, --sheetname SHEETNAME\n                        sheet name to convert\n  -d DELIMITER, --delimiter DELIMITER\n                        delimiter - columns delimiter in csv, 'tab' or 'x09'\n                        for a tab (default: comma ',')\n  -l LINETERMINATOR, --lineterminator LINETERMINATOR\n                        line terminator - lines terminator in csv, '\\n' '\\r\\n'\n                        or '\\r' (default: os.linesep)\n  -f DATEFORMAT, --dateformat DATEFORMAT\n                        override date/time format (ex. %Y/%m/%d)\n  --floatformat FLOATFORMAT\n                        override float format (ex. %.15f)\n  -i, --ignoreempty     skip empty lines\n  -e, --escape          Escape \\r\\n\\t characters\n  -p SHEETDELIMITER, --sheetdelimiter SHEETDELIMITER\n                        sheet delimiter used to separate sheets, pass '' if\n                        you do not need delimiter, or 'x07' or '\\\\f' for form\n                        feed (default: '--------')\n  -q QUOTING, --quoting QUOTING\n                        field quoting, 'none' 'minimal' 'nonnumeric' or 'all' (default: 'minimal')\n  --hyperlinks, --hyperlinks\n                        include hyperlinks\n  -I INCLUDE_SHEET_PATTERN [INCLUDE_SHEET_PATTERN ...], --include_sheet_pattern INCLUDE_SHEET_PATTERN [INCLUDE_SHEET_PATTERN ...]\n                        only include sheets named matching given pattern, only\n                        effects when -a option is enabled.\n  -E EXCLUDE_SHEET_PATTERN [EXCLUDE_SHEET_PATTERN ...], --exclude_sheet_pattern EXCLUDE_SHEET_PATTERN [EXCLUDE_SHEET_PATTERN ...]\n                        exclude sheets named matching given pattern, only\n                        effects when -a option is enabled.\n  -m, --merge-cells     merge cells\n```\n\nUsage with folder containing multiple `xlxs` files:\n```\n    python xlsx2csv.py /path/to/input/dir /path/to/output/dir\n```\nwill output each file in the input dir converted to `.csv` in the output dir. If omitting the output dir it will output the converted files in the input dir\n\nUsage from within Python:\n```\n  from xlsx2csv import Xlsx2csv\n  Xlsx2csv(\"myfile.xlsx\", outputencoding=\"utf-8\").convert(\"myfile.csv\")\n```\n\nExpat SAX parser used for xml parsing.\n\nSee alternatives:\n\nPerl:\n\nhttps://metacpan.org/dist/Spreadsheet-Read/view/scripts/xlsx2csv\n\nBash:\nhttp://kirk.webfinish.com/?p=91\n\nPython:\nhttp://github.com/staale/python-xlsx\nhttp://github.com/leegao/pyXLSX\n\nRuby:\nhttp://roo.rubyforge.org/\n\nJava:\nhttp://poi.apache.org/\n\n\n## Meta\n\n  Dilshod Temirkhdojaev – tdilshod@gmail.com\n\nDistributed under the MIT LICENSE. See ``LICENSE`` for more information.\n\n[https://github.com/dilshod](https://github.com/dilshod)\n","funding_links":[],"categories":["Excel to CSV conversion","Uncategorized","Python"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdilshod%2Fxlsx2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdilshod%2Fxlsx2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdilshod%2Fxlsx2csv/lists"}