All Projects → nreco → Csv

nreco / Csv

Licence: mit
Fast C# CSV parser

Programming Languages

csharp
926 projects

Projects that are alternatives of or similar to Csv

Etl.net
Mass processing data with a complete ETL for .net developers
Stars: ✭ 129 (+143.4%)
Mutual labels:  csv, dotnet-core, csv-parser
flatpack
CSV/Tab Delimited and Fixed Length Parser and Writer
Stars: ✭ 55 (+3.77%)
Mutual labels:  csv, csv-parser
Fast Csv
CSV parser and formatter for node
Stars: ✭ 1,054 (+1888.68%)
Mutual labels:  csv, csv-parser
Faster Than Csv
Faster CSV on Python 3
Stars: ✭ 52 (-1.89%)
Mutual labels:  csv, csv-parser
csvlixir
A CSV reading/writing application for Elixir.
Stars: ✭ 32 (-39.62%)
Mutual labels:  csv, csv-parser
csvtogs
Take a CSV file and create a Google Spreadsheet with the contents
Stars: ✭ 15 (-71.7%)
Mutual labels:  csv, csv-parser
Flatfiles
Reads and writes CSV, fixed-length and other flat file formats with a focus on schema definition, configuration and speed.
Stars: ✭ 275 (+418.87%)
Mutual labels:  csv, dotnet-core
React Csv Reader
React component that handles csv file input and its parsing
Stars: ✭ 138 (+160.38%)
Mutual labels:  csv, csv-parser
Csv Parser
A modern C++ library for reading, writing, and analyzing CSV (and similar) files.
Stars: ✭ 359 (+577.36%)
Mutual labels:  csv, csv-parser
Jsoncons
A C++, header-only library for constructing JSON and JSON-like data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON
Stars: ✭ 400 (+654.72%)
Mutual labels:  csv, csv-parser
Vroom
Fast reading of delimited files
Stars: ✭ 462 (+771.7%)
Mutual labels:  csv, csv-parser
Codablecsv
Read and write CSV files row-by-row or through Swift's Codable interface.
Stars: ✭ 214 (+303.77%)
Mutual labels:  csv, csv-parser
Intellij Csv Validator
CSV validator, highlighter and formatter plugin for JetBrains Intellij IDEA, PyCharm, WebStorm, ...
Stars: ✭ 198 (+273.58%)
Mutual labels:  csv, csv-parser
CsvTextFieldParser
A simple CSV parser based on Microsoft.VisualBasic.FileIO.TextFieldParser.
Stars: ✭ 40 (-24.53%)
Mutual labels:  csv, csv-parser
Csv2
Fast CSV parser and writer for Modern C++
Stars: ✭ 164 (+209.43%)
Mutual labels:  csv, csv-parser
VBA-CSV-interface
The most powerful and comprehensive CSV/TSV/DSV data management library for VBA, providing parsing/writing capabilities compliant with RFC-4180 specifications and a complete set of tools for manipulating records and fields.
Stars: ✭ 24 (-54.72%)
Mutual labels:  csv, csv-parser
Filehelpers
The FileHelpers are a free and easy to use .NET library to read/write data from fixed length or delimited records in files, strings or streams
Stars: ✭ 917 (+1630.19%)
Mutual labels:  csv, csv-parser
Dataclass Csv
Map CSV to Data Classes
Stars: ✭ 133 (+150.94%)
Mutual labels:  csv, csv-parser
Awesomecsv
🕶️A curated list of awesome tools for dealing with CSV.
Stars: ✭ 305 (+475.47%)
Mutual labels:  csv, csv-parser
Csvutil
csvutil provides fast and idiomatic mapping between CSV and Go (golang) values.
Stars: ✭ 501 (+845.28%)
Mutual labels:  csv, csv-parser

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 .NET Framework 4.5+ and .NET Core

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 StreamWrite(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-2018 Vitaliy Fedorchenko and contributors

Distributed under the MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].