Simple Python bindings for the libcdr written by Dr. Andrey Sobolev.
First, the libcdr
newer than v0.1.8
must be compiled.
E.g. on Debian:
apt-get install automake cmake libtool libboost-all-dev libicu-dev liblcms2-dev librevenge-dev libcppunit-dev zlib1g-dev
git clone https://git.libreoffice.org/libcdr
cd libcdr
./autogen.sh
./configure
make && sudo make install
Then: pip install git+https://github.com/mpds-io/pylibcdr
import sys
from pylibcdr import CDRParser
parser = CDRParser(sys.argv[1])
print(parser.dict)
Inherited from the libcdr
(MPL 2.0).