This library allows to parse various files used in Debian packaging:
debian-formats
The recommended way to install ocaml-debian-formats is via the opam package manager:
$ opam install debian-formats