{"id":17685824,"url":"https://github.com/sepandhaghighi/csv2yaml","last_synced_at":"2025-05-13T00:03:01.828Z","repository":{"id":62565763,"uuid":"103448160","full_name":"sepandhaghighi/csv2yaml","owner":"sepandhaghighi","description":"🔧 Quick \u0026 Easy CSV  To JSON, YAML \u0026 Pickle Converter","archived":false,"fork":false,"pushed_at":"2017-10-06T20:42:40.000Z","size":339,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T22:48:21.437Z","etag":null,"topics":["conversion","converter","csv","csv2json","csv2pickle","csv2yaml","json","json-data","pickle","python","python3","script","yaml"],"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/sepandhaghighi.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":"2017-09-13T20:40:10.000Z","updated_at":"2024-03-22T15:47:40.000Z","dependencies_parsed_at":"2022-11-03T18:51:57.481Z","dependency_job_id":null,"html_url":"https://github.com/sepandhaghighi/csv2yaml","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Fcsv2yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Fcsv2yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Fcsv2yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Fcsv2yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sepandhaghighi","download_url":"https://codeload.github.com/sepandhaghighi/csv2yaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843199,"owners_count":21972872,"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":["conversion","converter","csv","csv2json","csv2pickle","csv2yaml","json","json-data","pickle","python","python3","script","yaml"],"created_at":"2024-10-24T10:29:09.734Z","updated_at":"2025-05-13T00:03:01.733Z","avatar_url":"https://github.com/sepandhaghighi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eCSV2YAML\u003c/h1\u003e\n\t\n\u003cp\u003eConvert CSV File To JSON, YAML \u0026 Pickle\t\u003c/p\u003e\n\n\u003c/div\u003e\t\n\t\n\t\n\n----------\t\t\n\n\t\t\n\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://codecov.io/gh/sepandhaghighi/csv2yaml\"\u003e\n  \u003cimg src=\"https://codecov.io/gh/sepandhaghighi/csv2yaml/branch/master/graph/badge.svg\" alt=\"Codecov\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.codacy.com/app/sepand-haghighi/csv2yaml?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=sepandhaghighi/csv2yaml\u0026amp;utm_campaign=Badge_Grade\"\u003e\u003cimg src=\"https://api.codacy.com/project/badge/Grade/7a8c9902f6354a9b910ca22e35d785a2\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://badge.fury.io/py/csv2yaml\"\u003e\u003cimg src=\"https://badge.fury.io/py/csv2yaml.svg\" alt=\"PyPI version\" height=\"18\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\n\n\t\n\n\n\t\n\u003c/hr\u003e\n\u003c/hr\u003e\n\n## Installation\n### Source Code\n- Download [Version 0.2](https://github.com/sepandhaghighi/csv2yaml/archive/v0.2.zip) or [Latest Source ](https://github.com/sepandhaghighi/csv2yaml/archive/master.zip)\n- `pip3 install -r requirements.txt` or `pip install -r requirements.txt` (Need root access)\t \n- `python3 setup.py install` or `python setup.py install`\t\n\n\n### PyPI\n\n\n- Check [Python Packaging User Guide](https://packaging.python.org/installing/)     \n- `pip install csv2yaml` or `pip3 install csv2yaml` (Need root access)\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\n\n## Usage\t\t\t\n\t\t\t\t\n\n### Command Line\n\n- Run csv2yaml with file as argument `python3 -m csv2yaml file.csv header_optional` or `python -m csv2yaml file.csv header_optional` on Mac,Linux or Windows\n- Run `python3 -m csv2yaml all header_optional` or `python -m csv2yaml all header_optional` to convert all csv files in folder\n- Default Header : Filename\n\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"csv2yaml_usage.gif\" alt=\"csv2yaml usage\" title=\"csv2yaml usage\"\u003e\n\u003c/div\u003e\n\t\t\t\t\t\t\n\t\t\t\t\n## Automated Build\t\t\t\t\n\n\n\u003cdiv align=\"center\"\u003e\n\u003ctable align=\"center\" style=\"border:1px solid black;\"\u003e\n\u003ctr\u003e\n\u003cth\u003eLinux\u003c/th\u003e\n\u003cth\u003eWindows\u003c/th\u003e\n\n\u003c/tr\u003e\n\n\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https://travis-ci.org/sepandhaghighi/csv2yaml\"\u003e\u003cimg src=\"https://travis-ci.org/sepandhaghighi/csv2yaml.svg?branch=master\"\u003e\u003c/a\u003e\u003c/td\u003e\n\u003ctd\u003e \u003ca href=\"https://ci.appveyor.com/project/sepandhaghighi/csv2yaml\"\u003e\u003cimg src=\"https://ci.appveyor.com/api/projects/status/4jvejgwe53nnaq3k?svg=true\"\u003e\u003c/a\u003e\u003c/td\u003e\n\n\u003c/tr\u003e\t\n\n\u003c/table\u003e\n\n\u003c/div\u003e\t\n\n## Input File Format\n\n```\n\tKey1,Key2,...,KeyN\n\tValue11,Value12,...,Value1N\n\t.\n\t.\n\t.\n\tValueN1,ValueN2,...,ValueNN\n```\n\t\t\n## Output File Format\n\n- [JSON(.json)](https://en.wikipedia.org/wiki/JSON)\n\n\t```\n\t\t{\n\t\t\"header_name\": {\n\t\t\t\t\"data\":[\n\t\t\t\t{\n\t\t\t\t\t\"id\"  : \"1\",\n\t\t\t\t\t\"Key1\": \"Value11\",\n\t\t\t\t\t\"Key2\": \"Value12\",\n\t\t\t\t\t.\n\t\t\t\t\t.\n\t\t\t\t\t.\n\t\t\t\t\t\"KeyN\": \"Value1N\"\n\t\t\t\t},\n\n\t\t\t\t.\n\t\t\t\t.\n\t\t\t\t.\n\n\t\t\t\t{\n\t\t\t\t\t\"id\"  : \"N\",\n\t\t\t\t\t\"Key1\": \"ValueN1\",\n\t\t\t\t\t\"Key2\": \"ValueN2\",\n\t\t\t\t\t.\n\t\t\t\t\t.\n\t\t\t\t\t.\n\t\t\t\t\t\"KeyN\": \"ValueNN\"\n\t\t\t\t},\n\t\t\t\t]\n\t\t\t}\n\t\t}\n\t```\n\n- [YAML(.yaml)](https://en.wikipedia.org/wiki/YAML)\n\t```\n\t\theader_name:\n  \t\t\tdata:\n\t\t\t- Key1: \"Value11\"\n    \t  \tKey2: \"Value12\"\n    \t  \t.\n            .\n            .\n\t\t\tKeyN: \"Value1N\"\n\t\t\tid  : \"1\"\n\t\t\n\t\t\t.\n\t\t\t.\n\t\t\t.\n\n\t\t\t- Key1: \"ValueN1\"\n    \t  \tKey2: \"ValueN2\"\n    \t  \t.\n            .\n            .\n\t\t\tKeyN: \"ValueNN\"\n\t\t\tid  : \"N\"\n\n\t``` \n\n- [Pickle(.p)](https://docs.python.org/3.5/library/pickle.html) (Binary Format)\t\t\t\t\t\t\t\t\t\t\t\t\t\n## TODO\t\t\n\n- [x] Formats\n  - [x] JSON\n  - [x] YAML\n  - [x] Pickle\n\t\t\t\n\n## Issues \u0026 Bug Reports\t\t\t\n\nJust fill an issue and describe it. We'll check it ASAP!\t\t\t\t\t\t\t\nor send an email to [sepand@qpage.ir](mailto:sepand@qpage.ir \"sepand@qpage.ir\"). \n\n\n## Contribution\t\t\t\n\nYou can fork the repository, improve or fix some part of it and then send the pull requests back if you want to see them here. I really appreciate that. ❤️\t\t\t\n\nRemember to write a few tests for your code before sending pull requests. \n\t\t\t\t\t\n## Donate to our project\t\t\t\t\t\t\t\t\t\n\nIf you feel like our project is important can you please support us?\t\t\t\nOur project is not and is never going to be working for profit. We need the money just so we can continue doing what we do.\n\n\u003ch3\u003eBitcoin :\u003c/h3\u003e\t\t\t\t\t\n\n```1XGr9qbZjBpUQJJSB6WtgBQbDTgrhPLPA```\n\t\t\t\t\n\n\u003ch3\u003ePayping (For Iranian citizens) :\u003c/h3\u003e\n\n\u003ca href=\"http://www.payping.net/sepandhaghighi\" target=\"__blank\"\u003e\u003cimg src=\"http://www.qpage.ir/images/payping.png\" height=100px width=100px\u003e\u003c/a\u003e\n\n## License\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/sepandhaghighi/csv2yaml/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/mashape/apistatus.svg\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\n\n\t\t\t\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepandhaghighi%2Fcsv2yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsepandhaghighi%2Fcsv2yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepandhaghighi%2Fcsv2yaml/lists"}