In fact, python-apt allows you to work with these files directly. Here is an example:
from apt.debfile import DebPackage from pprint import pprint pkg = DebPackage('/tmp/wajig_2.7_all.deb') pprint(pkg.filelist)
Output:
$ ./script.py ['./', 'etc/', 'etc/bash_completion.d/', ... 'usr/bin/', 'usr/bin/wajig']
This is not as complete as I would like sadly, but it has a bunch of functionality.
( more details )
source share