https://github.com/bigbuildbench/nreco_csv

https://github.com/bigbuildbench/nreco_csv

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: BigBuildBench
  • License: mit
  • Language: C#
  • Default Branch: master
  • Size: 23.4 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

NReco.Csv

Ultra-fast C# CSV parser: implements stream reader and writer. NuGet Release

  • very fast: x2-x4 times faster than JoshClose's CSVHelper
  • memory efficient: uses only single circular buffer, no allocations in heap for CSV of any size
  • lightweight: bare csv parser with simple API
  • tolerant to not-fully correct CSV files, you can control max length of CSV file (useful for processing end-user CSV uploads)
  • can be used for stream processing of many-GB CSV files
  • supports all .NET versions: Framework 4.5+, .NET Core, NET6+

How to use

Parse CSV stream: using (var streamRdr = new StreamReader(inputStream)) { var csvReader = new CsvReader(streamRdr, ","); while (csvReader.Read()) { for (int i=0; i<csvReader.FieldsCount; i++) { string val = csvReader[i]; } } } Generate CSV to stream: ```

using (var streamWr = new StreamWriter(outputStream)) { var csvWriter = new CsvWriter(streamWr); // write line csvWriter.WriteField("Value with double quote\""); csvWriter.WriteField("And with\nnew line"); csvWriter.WriteField("Normal"); csvWriter.NextRecord(); } ```

Who is using this?

NReco.Csv is in production use at SeekTable.com and PivotData microservice.

License

Copyright 2017-2024 Vitaliy Fedorchenko and contributors

Distributed under the MIT license

Owner

  • Name: BigBuildBench
  • Login: BigBuildBench
  • Kind: organization

abbr. B3, benchmarking the repo-level understanding capability of your LLMs by reconstructing project build-file.

GitHub Events

Total
  • Create event: 8
Last Year
  • Create event: 8

Dependencies

.github/workflows/dotnet-test.yml actions
  • actions/checkout v3 composite
  • actions/setup-dotnet v3 composite
src/NReco.Csv/NReco.Csv.csproj nuget
src/NReco.Csv.Tests/NReco.Csv.Tests.csproj nuget