If you’re looking for other software like this, Ben Gertzfield has his own CDDB modules for Python.
There are three files for download here:
- cddbid.py is a small module to calculate the CDDB ID for a CD-ROM, given the track lengths.
- cdtoc.py is some example code that uses the ioctl functions in Python to retrieve the track lengths from a CD-ROM, at least under x86 Linux.
- CDROM.py is an automatically generated file from the Linux cdrom.h header, that provides constants needed by cdtoc.py.