package csv

  1. Overview
  2. Docs
A pure OCaml library to read and write CSV files.

Install

Dune Dependency

Authors

Maintainers

Sources

csv-2.0.tbz
sha256=f7077c3928c3e36b207c06bd2e82625f5a92c480144f48ecc92e16c697d7ddbc
md5=b21dff064ec2151923cce97564688ea5

Description

This is a pure OCaml library to read and write CSV files, including all extensions used by Excel — e.g. quotes, newlines, 8 bit characters in fields, "0 etc. A special representation of rows of CSV files with a header is provided. The library comes with a handy command line tool called csvtool for handling CSV files from shell scripts.

Tags

csv database science

Published: 05 Sep 2017

README

README.md

OCaml CSV

The comma-separated values format — or CSV for short — is a simple tabular format supported by all major spreadsheets. This library implements pure OCaml functions to read and write files in this format (including Excel extensions) as well as some convenience functions to manipulate such data.

Compile & install

The easiest way to install this library is to use OPAM:

opam install csv

for the standard version and

opam install csv-lwt

for the LWT one. If you prefer to compile and install by hand, make sure you have jbuilder and run

jbuilder build @install
jbuilder install csv
jbuilder install csv-lwt

Uninstall

With OPAM:

opam remove csv
opam remove csv-lwt

Manually (from the source directory):

jbuilder uninstall csv
jbuilder uninstall csv-lwt

Documentation

The documentation for the Csv (resp. Csv_lwt) module can be found online (resp. here) or in csv.mli (resp. csv_lwt.mli).

Also see the examples.

OCaml

Innovation. Community. Security.