{"id":19754933,"url":"https://github.com/nreco/csv","last_synced_at":"2025-04-04T09:10:02.195Z","repository":{"id":41262841,"uuid":"159362721","full_name":"nreco/csv","owner":"nreco","description":"Fast C# CSV parser","archived":false,"fork":false,"pushed_at":"2024-08-08T08:05:30.000Z","size":22,"stargazers_count":147,"open_issues_count":2,"forks_count":32,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T08:09:31.029Z","etag":null,"topics":["csharp","csv","csv-parser","csv-parsing","csv-reader","dotnet","dotnet-core"],"latest_commit_sha":null,"homepage":"https://www.nrecosite.com","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/nreco.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}},"created_at":"2018-11-27T16:06:48.000Z","updated_at":"2025-01-15T02:48:48.000Z","dependencies_parsed_at":"2024-06-11T17:55:39.554Z","dependency_job_id":"19ea51ee-def5-48ff-8ecc-c88af1dc2e38","html_url":"https://github.com/nreco/csv","commit_stats":{"total_commits":12,"total_committers":3,"mean_commits":4.0,"dds":"0.16666666666666663","last_synced_commit":"6be16eec832188d72657fb47cc0507dedb6219a7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nreco%2Fcsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nreco%2Fcsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nreco%2Fcsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nreco%2Fcsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nreco","download_url":"https://codeload.github.com/nreco/csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149505,"owners_count":20891954,"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":["csharp","csv","csv-parser","csv-parsing","csv-reader","dotnet","dotnet-core"],"created_at":"2024-11-12T03:06:44.116Z","updated_at":"2025-04-04T09:10:02.176Z","avatar_url":"https://github.com/nreco.png","language":"C#","readme":"# NReco.Csv\nUltra-fast C# CSV parser: implements stream reader and writer. \n[![NuGet Release](https://img.shields.io/nuget/v/NReco.Csv.svg)](https://www.nuget.org/packages/NReco.Csv/)\n\n* very fast: x2-x4 times faster than JoshClose's CSVHelper\n* memory efficient: uses only single circular buffer, no allocations in heap for CSV of any size\n* lightweight: bare csv parser with simple API\n* tolerant to not-fully correct CSV files, you can control max length of CSV file (useful for processing end-user CSV uploads)\n* can be used for stream processing of many-GB CSV files\n* supports all .NET versions: Framework 4.5+, .NET Core, NET6+\n\n## How to use\nParse CSV stream:\n```\nusing (var streamRdr = new StreamReader(inputStream)) {\n  var csvReader = new CsvReader(streamRdr, \",\");\n  while (csvReader.Read()) {\n    for (int i=0; i\u003ccsvReader.FieldsCount; i++) {\n      string val = csvReader[i];\n    }\n  }\n}\n```\nGenerate CSV to stream:\n```\n\nusing (var streamWr = new StreamWriter(outputStream)) {\n  var csvWriter = new CsvWriter(streamWr);\n  // write line\n  csvWriter.WriteField(\"Value with double quote\\\"\");\n  csvWriter.WriteField(\"And with\\nnew line\");\n  csvWriter.WriteField(\"Normal\");\n  csvWriter.NextRecord();\n}\n```\n\n## Who is using this?\nNReco.Csv is in production use at [SeekTable.com](https://www.seektable.com/) and [PivotData microservice](https://www.nrecosite.com/pivotdata_service.aspx).\n\n## License\nCopyright 2017-2024 Vitaliy Fedorchenko and contributors\n\nDistributed under the MIT license\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnreco%2Fcsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnreco%2Fcsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnreco%2Fcsv/lists"}