{"id":50985442,"url":"https://github.com/emmsthefemms/csv-reader","last_synced_at":"2026-06-19T18:34:33.269Z","repository":{"id":62565740,"uuid":"287218183","full_name":"emmsthefemms/csv-reader","owner":"emmsthefemms","description":"csv file reader for python","archived":false,"fork":false,"pushed_at":"2020-09-04T09:07:02.000Z","size":5944,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-07T11:50:34.098Z","etag":null,"topics":["csv","pip","pypi","python"],"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/emmsthefemms.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-08-13T08:01:45.000Z","updated_at":"2024-08-27T04:24:20.000Z","dependencies_parsed_at":"2022-11-03T17:47:41.710Z","dependency_job_id":null,"html_url":"https://github.com/emmsthefemms/csv-reader","commit_stats":null,"previous_names":["emmsthefemms/csv-reader","weeb-kun/csv-reader"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/emmsthefemms/csv-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmsthefemms%2Fcsv-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmsthefemms%2Fcsv-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmsthefemms%2Fcsv-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmsthefemms%2Fcsv-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emmsthefemms","download_url":"https://codeload.github.com/emmsthefemms/csv-reader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmsthefemms%2Fcsv-reader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34544406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","pip","pypi","python"],"created_at":"2026-06-19T18:34:32.465Z","updated_at":"2026-06-19T18:34:33.262Z","avatar_url":"https://github.com/emmsthefemms.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nWelcome to my small python project.\nThis library just provides some functions to read from csv files.\nI developed this library for fun.\nIf anyone wants to contribute, feel free to contact me or open an issue.\nThis library uses the built-in `csv` module\n\n## Installation\nType this into your command prompt:\n`pip install csv-reader`\n\n## Usage\n\nat the top of your py files:\n```python\nfrom csv_reader import Reader\n```\n\nin your code:\n```python\nwith Reader.openWithName(\"test.csv\") as file:\n    for line in file:\n        print(line)\n```\n\n## Documentation\n\u003cbr\u003e\nVisit https://csv-reader.readthedocs.io/en/latest for the documentation.\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Examples\nThe examples can also be found at https://csv-reader.readthedocs.io/en/latest/Examples.html\n\n### Reader\n\n#### openWithName()\n\n```python\nwith Reader.openWithName(\"test.csv\") as file:\n    for line in file:\n        print(line)\n```\n\u003cbr\u003e\nnote: when used in a `for` loop, each `line` is a list of values in each line of the file.\n\n#### openWithFile()\n``` python\nwith Reader.openWithFile(open(\"test.csv\" newline=\"\")) as file:\n    for line in file:\n        print(line)\n```\n\u003cbr\u003e\nnote: when used in a `for` loop, each `line` is a list of values in each line of the file.\n\n#### readFromName()\n\n```python\nwith Reader.readFromName(\"test.csv\") as file:\n    for line in file:\n        print(line)\n```\n\u003cbr\u003e\nnote: `line` is a string.\n\n#### readFromFile()\n\n```python\nwith Reader.readFromFile(open(\"test.csv\", newline=\"\")) as file:\n    for line in file:\n        print(line)\n```\n\u003cbr\u003e\nnote: `line` is a string.\n\n### Writer\nThe Writer module provides 2 classes for writing to csv files. 1 uses lists while another uses dicts.\n\n```python\nfrom csv_reader import Writer\n```\n\u003cbr\u003e\n\n#### csv_reader.CSVWriter\n```python\nwith CSVWriter(\"test.csv\") as file:\n    file.write([\"test1\", \"test2\"])\n```\n\u003cbr\u003e\n\n#### csv_reader.CSVDictWriter\n```python\nwith CSVDictWriter(\"test.csv\", [\"field1\", \"field2\"]) as file:\n    file.writeRows([\n        {\"field1\":\"test1\", \"field2\":\"test2\"},\n        {\"field1\": \"test3\", \"field2\": \"test4\"}\n    ])\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmsthefemms%2Fcsv-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmsthefemms%2Fcsv-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmsthefemms%2Fcsv-reader/lists"}