svfactor: Syntax-preserving CSV manipulation

[ bsd3, csv, library, text, web ] [ Propose Tags ]

svfactor is a library for parsing, manipulating, and printing CSV and similar formats (such as PSV, TSV, and many more).

svfactor retains all syntactic information including newlines, and provides lenses, prisms, and traversals to query and manipulate this structure. This should make it useful for writing custom CSV transformations and sanitisation tools. For example, one could easily use it to rewrite all CRLF newlines to LF. It also extends RFC4180 by allowing optional spacing surrounding fields.

svfactor's parser is exposed so you can use it independently and printing is similarly standalone.

Please note that there are known performance problems with svfactor.

Examples:

Versions 0.1
Change log changelog.md
Dependencies attoparsec (>=0.12.1.4 && <0.14), base (>=4.7 && <5), bifunctors (>=5.1 && <6), bytestring (>=0.9.1.10 && <0.11), charset (>=0.3 && <=0.4), deepseq (>=1.1 && <1.5), lens (==4.*), parsec (==3.1.*), parsers (==0.12.*), semigroupoids (==5.*), semigroups (==0.18.*), text (>=1.0 && <1.3), transformers (>=0.2 && <0.6), trifecta (>=1.5 && <2.1), utf8-string (>=1 && <1.1), vector (>=0.10 && <0.13) [details]
License BSD-3-Clause
Copyright Copyright (c) 2018, Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230.
Author George Wilson
Maintainer george@qfpl.io
Category CSV, Text, Web
Home page https://github.com/qfpl/svfactor
Bug tracker https://github.com/qfpl/svfactor/issues
Source repo head: git clone git@github.com/qfpl/svfactor.git
Uploaded by qfpl at Thu Jul 19 06:33:26 UTC 2018
Distributions NixOS:0.1
Downloads 83 total (11 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-07-19 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees