Fast C++ CSV Parser
Text_view
Fast C++ CSV Parser | Text_view | |
---|---|---|
7 | - | |
2,133 | 122 | |
- | - | |
3.5 | 0.0 | |
about 1 month ago | almost 7 years ago | |
C++ | C++ | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Fast C++ CSV Parser
-
When not to use Rust?
Sorry that I still have a life. Had to analyse and mangle many large csv files and switched from Python and its csv module to: https://github.com/ben-strasser/fast-cpp-csv-parser and C++ containers/types. Python is just ineffable slow in comparison (as I wrote from >1hr to <1s).
-
Help me understand this code snippet involving template with 3 dots (...)
where csv_reader is a CSVReader type from: https://github.com/ben-strasser/fast-cpp-csv-parser, we're reading iris.data, a CSV file which contains double,double,double,double,string values.
-
csv parser that supports wchar_t strings
Good night everybody, I was trying to work with some csv file that had some hebrew characters, therefore I need to use std::wstring, but the ones I found didn't supported wide characters, like this one.\ Does anybody here knows any csv parser that works with wide chars? Thanks in advance.
-
Strategies for finding zeroes of Tektronix Waveform .csv file (~200 MB .csv file)
*Go with my first instinct and do it in C++ anyways? I already use python at work and I'm wondering if a tool featuring a C++ parser as the back-end and something like pysimplegui as the front end could be a game-changer at my job.
-
Csvlib file
This one comes to mind: https://github.com/ben-strasser/fast-cpp-csv-parser
-
A tuple oriented csv parser [UPDATE]
I did consider the parser returning std::optional, but I think it is situational whether one would look nicer than the other. For example, using value_or() in the first example would not work since I do not want to print anything if the row is invalid, so I would still have to check the optional, and than add another line to decompose the tuple resulting in more lines. Notice that p.valid() can also be used to check if the file was open within the constructor. Fetching error messages would also be slightly more complicated. As for exceptions, I do no think it could work at all in this iteration loop since it would break the loop even if I catch it, and again, file not open would need to be handled too, and making it throw would require me to enclose the whole parser in a try/catch block since the constructor would throw that exception, one of the problems I had with the fast-cpp-csv-parser. Its all a trade-off, but I think I will stick with p.valid(), tho I will consider it still.
-
A tuple oriented C++ csv parser
fast-cpp-csv-parser - 2.022 +- 0.025 [s]
Text_view
We haven't tracked posts mentioning Text_view yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
Rapidcsv - C++ CSV parser library
lexertl - lexertl: The Modular Lexical Analyser Generator
Vince's CSV Parser - A high-performance, fully-featured CSV parser and serializer for modern C++.
Justinbobia - The Configurable Math Library
nvParse - Fast, gpu-based CSV parser
Inja - A Template Engine for Modern C++
csv
Lingo - Text encoding for modern C++
lazycsv - A fast, lightweight and single-header C++ csv parser library
UTF-Utils - A simple and small header-only helper for transcoding between UTF-16LE, UTF-32LE, and UTF-8. This includes the utilities for verifying valid unicode codepoints for the encoding as well as handling invalid codepoints by using a replacement character for that encoding instead of throwing.
ssp - C++ CSV parser
ucheck - Automatically exported from code.google.com/p/ucheck