csvreader v1.0 - read tabular comma-separated values (csv) the right way (incl. hash readers, converters, enumerables, dialects, and more)
Gerald Bauer <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CAAxEZd9xNOavQF87uC4UMFZtgLzQJYR-YE0bYH=UpdFTXeTKyg@mail.gmail.com> |
Hello, I've uploaded [version 1.0 of the new comma-separated values csvreader library / gem [1] that lets you read tabular data in the comma-separated values (csv) format the right way :-), that is, the basic methods such as `Csv.read `or `CsvHash.read` use best practices out-of-the-box with zero-configuration. Under the hood the new library includes purpose-built "backend" parsers (e.g. `ParserStd`, `ParserStrict`, `ParserTab`, etc.) so you can handle all the popular comma-separated values (csv) formats / dialects such as MySQL (use `Csv.mysql.read`) or PostgreSQL (use `Csv.postgres.read`) exports and more using unix-style escapes and `\N` or unquoted empty values for null/nil and so on. Data is the new gold :-) Happy data / gold mining with the new csvreader library / gem (in ruby). Cheers. Prost. PS: [What's wrong (broken) in the standard csv library? See the let's count the ways article series [2]. [1]: https://github.com/csv11/csvreader [2]: https://github.com/csv11/docs Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>