File Formats
Serialization
JSON
- yojson:
an optimized parsing and printing library for the JSON format.
- ppx_yojson_conv:
A solid
ppx_deriving
solution for automatically deriving JSON serializers from types. Other solutions are not recommended. - yojson_ppx:
Write
yojson
-oriented code more easily and concisely.
- ppx_yojson_conv:
A solid
- jsonm: non-blocking streaming JSON codec for OCaml.
- ezjsonm:
library to simplify usage of
jsonm
. - jsonxy: RFC-compliant JSON library. docs.
- data-encoding: A library for JSON and binary encoding of values.
TOML
- otoml: TOML parsing, manipulation, and pretty-printing library for OCaml (fully 1.0.0-compliant)
- To.ml: an OCaml library for reading and writing TOML files
XML
- Markup: streaming, lazy parser for XML and HTML5.
- xmlm: a streaming codec to decode and encode the XML data format.
- easyxmlm:
easy to use wrapper over
xmlm
.
YAML
- ocaml-yaml: Parse and generate yaml 1.1 files.
Others
- sexplib: a S-expression parser and printer
- biniou: extensible binary data format, like JSON but faster.
- ocaml-protoc pure OCaml implementation of Protobuf with binary, Yojson and BuckleScript JSON support.
- bin_prot efficient, type-safe binary protocol specific to OCaml.
- camlon: configuration and serialization format similar to JSON but with an OCaml feel.
- ocaml-decoders: Elm-inspired decoders for OCaml
- zipc: In-memory pure OCaml zip library.
Data Science Files
- npy: read and write the numpy file format.
- hdf5-OCaml: OCaml implementation of hdf5 reader/writer. Mostly used in data science.
Miscellaneous
- camlPDF: OCaml library for reading, writing and modifying PDF files.
- bencode: Bencode (.torrent file format) reader/writer.
- Decompress:
a pure OCaml implementation of
Zlib
. - Easy-xslx: read Microsoft Office Open XML files.
- hevea: library to convert LaTex to html. Used for the OCaml manual
- ocaml-pandoc: Interface to pandoc, a universal markup converter.