This python library can parse the ISO 9660
disk image format including
Rock Ridge
extensions. It can load ISOs from the local filesystem or via
HTTP, and will only read and cache sectors as necessary. You list directory
contents, extract files, and retrieve metadata.
This package is unmaintained. The author now maintains the pathlab package, which includes support for ISO 9660 and Rock Ridge. The pycdlib package may also be of interest if you need Joliet / UDF support.
.. code-block:: console
$ pip install isoparser
.. code-block:: python
import isoparser
iso = isoparser.parse("http://www.microsoft.com/linux.iso")
print iso.record("boot", "grub").children
print iso.record("boot", "grub", "grub.cfg").content
.. _ISO 9660
: https://en.wikipedia.org/wiki/ISO_9660
.. _Rock Ridge
: https://en.wikipedia.org/wiki/Rock_Ridge
.. pathlab
: https://github.com/barneygale/pathlab
.. pycdlib
: https://github.com/clalancette/pycdlib