package csv
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=2b90f22ef36279a4e1249d6784a4fb3e3e3f16394018ffdabae21ba71d4f759b
sha512=70ab5d0f5829c118e278942914632abdd6b626a543d3de6c11572e93aa7c869be9a03565255651d787b881fa2e9f11a933aaed70d07eed4261376e8f01dc29a4
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.
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 dune and run
dune build @install
dune install csv
dune install csv-lwt
For the command line manipulation utility, do
opam install csvtool
or
dune install csvtool
Uninstall
With OPAM:
opam remove csv
opam remove csv-lwt
opam remove csvtool
Manually (from the source directory):
dune uninstall csv
dune uninstall csv-lwt
dune uninstall csvtool
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.
Dependencies (4)
- base-unix
- base-bytes
- dune
-
ocaml
>= "4.03.0"
Dev Dependencies
None
Used by (16)
- benchpress
- benchpress-server
- bitgenerators
- cca
-
csv-lwt
>= "2.2" & < "2.4"
- csvprovider
-
csvtool
< "2.4"
- dataframe
-
dockerfile-cmd
< "6.1.0"
- easy_xlsx
-
facebook-sdk
>= "0.3.1"
-
opass
>= "1.0.0"
- pgocaml
- sociaml-facebook-api
- sociaml-tumblr-api
- sqlexpr
Conflicts
None