{"id":17309832,"url":"https://github.com/eliotjones/csvswan","last_synced_at":"2025-09-06T02:43:13.709Z","repository":{"id":87878709,"uuid":"239345479","full_name":"EliotJones/CsvSwan","owner":"EliotJones","description":"Easily parse CSV files from C# using common defaults","archived":false,"fork":false,"pushed_at":"2022-06-21T13:02:10.000Z","size":112,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-01T02:39:35.619Z","etag":null,"topics":["csharp","csv","csv-parser","csv-parsing","csv-reader"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/EliotJones.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-09T17:36:07.000Z","updated_at":"2024-06-02T01:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"b335b71f-42e7-4b9e-a782-533742112e9e","html_url":"https://github.com/EliotJones/CsvSwan","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/EliotJones/CsvSwan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliotJones%2FCsvSwan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliotJones%2FCsvSwan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliotJones%2FCsvSwan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliotJones%2FCsvSwan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EliotJones","download_url":"https://codeload.github.com/EliotJones/CsvSwan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliotJones%2FCsvSwan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273850520,"owners_count":25179354,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":["csharp","csv","csv-parser","csv-parsing","csv-reader"],"created_at":"2024-10-15T12:32:57.478Z","updated_at":"2025-09-06T02:43:13.696Z","avatar_url":"https://github.com/EliotJones.png","language":"C#","readme":"# CSV Swan #\n\n\u003cimg src=\"https://raw.githubusercontent.com/EliotJones/CsvSwan/master/icon.png\" width=\"128px\"/\u003e\n\nCsvSwan is a small .NET Standard CSV parsing library that \"just works\" for the simplest CSV scenarios. It aims to be high-performance and provide easy-to-use defaults.\n\n    using (Csv csv = Csv.Open(@\"C:\\path\\to\\file.csv\"))\n    {\n        foreach (var row in csv.Rows)\n        {\n            // Get all values\n            IReadOnlyList\u003cstring\u003e values = row.GetValues();\n\n            // Map to a numeric type\n            int id = row.GetInt(0);\n            decimal value = row.GetDecimal(1);\n        }\n    }\n\nYou can also map to a list of objects of a given type:\n\n    public class MyClass\n    {\n        [CsvColumnOrder(0)]\n        public int Id { get; set; }\n\n        [CsvColumnOrder(1)]\n        public string Name { get; set; }\n    }\n\n    using (Csv cvs = Csv.Open(@\"C:\\path\\to\\file.csv\"))\n    {\n        List\u003cMyClass\u003e results = csv.Map\u003cMyClass\u003e().ToList();\n    }\n\nThe default settings are for a file with:\n\n+ A comma separator `,`.\n+ Newlines between rows, either Unix `\\n` or Windows `\\r\\n`.\n+ Optional quotes using the double quote `\"` for fields.\n+ Quotes inside quoted fields escaped using either RFC-4180 double-double quotes `\"\"` (or optionally backslash escaped `\\\"`, use `CsvOptions.BackslashEscapesQuotes`, off by default).\n\nAdditionally the user must specify if the file contains a header row prior to parsing using `CsvOptions.HasHeaderRow`, this is off by default.\n\nThe separator and quote character can be set to other values using the `CsvOptions` parameter to the `Csv.Open` methods.\n\n## Installation ##\n\nGet it from [NuGet](https://www.nuget.org/packages/CsvSwan) or install from the package manager command line:\n\n    \u003e Install-Package CsvSwan","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliotjones%2Fcsvswan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliotjones%2Fcsvswan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliotjones%2Fcsvswan/lists"}