python-debian - Python modules to work with Debian-related data formats

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe amd64
Package name: python-debian
Package version: 0.1.27ubuntu2
Package release:
Package architecture: all
Package type: deb
Installed size: 253 B
Download size: 62.67 KB
Official Mirror:
This package provides Python modules that abstract many formats of Debian related files. Currently handled are: * Debtags information (debian.debtags module) * debian/changelog (debian.changelog module) * Packages files, pdiffs (debian.debian_support module) * Control files of single or multiple RFC822-style paragraphs, e.g. debian/control, .changes, .dsc, Packages, Sources, Release, etc. (debian.deb822 module) * Raw .deb and .ar files, with (read-only) access to contained files and meta-information



  • python-deb822


  • python-deb822


  • python-deb822


    Source package: python-debian

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install python-debian deb package:
      # sudo apt-get install python-debian


    • /usr/lib/python2.7/dist-packages/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian/
    • /usr/lib/python2.7/dist-packages/debian_bundle/
    • /usr/lib/python2.7/dist-packages/python_debian-0.1.27.egg-info/PKG-INFO
    • /usr/lib/python2.7/dist-packages/python_debian-0.1.27.egg-info/dependency_links.txt
    • /usr/lib/python2.7/dist-packages/python_debian-0.1.27.egg-info/requires.txt
    • /usr/lib/python2.7/dist-packages/python_debian-0.1.27.egg-info/top_level.txt
    • /usr/share/doc/python-debian/ACKNOWLEDGEMENTS
    • /usr/share/doc/python-debian/HISTORY.deb822
    • /usr/share/doc/python-debian/NEWS.Debian.gz
    • /usr/share/doc/python-debian/README
    • /usr/share/doc/python-debian/README.changelog.gz
    • /usr/share/doc/python-debian/README.deb822
    • /usr/share/doc/python-debian/README.debtags.gz
    • /usr/share/doc/python-debian/changelog.gz
    • /usr/share/doc/python-debian/copyright
    • /usr/share/doc/python-debian/examples/changelog/changelog_to_file.gz
    • /usr/share/doc/python-debian/examples/changelog/simple_changelog
    • /usr/share/doc/python-debian/examples/copyright/
    • /usr/share/doc/python-debian/examples/deb822/depgraph
    • /usr/share/doc/python-debian/examples/deb822/grep-maintainer
    • /usr/share/doc/python-debian/examples/deb822/
    • /usr/share/doc/python-debian/examples/deb822/render-dctrl.gz
    • /usr/share/doc/python-debian/examples/debfile/ar
    • /usr/share/doc/python-debian/examples/debfile/changelog_head.gz
    • /usr/share/doc/python-debian/examples/debfile/dpkg-info
    • /usr/share/doc/python-debian/examples/debfile/extract_cron
    • /usr/share/doc/python-debian/examples/debtags/pkgwalk
    • /usr/share/doc/python-debian/examples/debtags/reverse
    • /usr/share/doc/python-debian/examples/debtags/smartsearch.gz
    • /usr/share/doc/python-debian/examples/debtags/tagminer.gz
    • /usr/share/doc/python-debian/examples/debtags/tagsbyrelevance


    2016-04-04 - Barry Warsaw <> python-debian (0.1.27ubuntu2) xenial; urgency=medium * Fix FTBFS due to test failure with patch from

    2015-07-22 - Colin Watson <> python-debian (0.1.27ubuntu1) wily; urgency=medium * Resynchronise with Debian. Remaining changes: - Add .lzma as a possible extension for data.tar. Note that this does not mean that reading from the .lzma part is supported. This is blocked on

    2015-04-15 - Stuart Prescott <> python-debian (0.1.27) unstable; urgency=medium * Tighten whitespace handling in GPG Armor Header lines, with thanks to Guillem Jover for the patch (Closes: #782276).

    2015-04-04 - Stuart Prescott <> python-debian (0.1.26) unstable; urgency=medium * Fix FTBFS with binutils >= 2.25-6 by turning off determinism in ar archives when building archives in the test suite, thanks to Dmitry Shachnev for the patch (Closes: #781543). * Require binutils >= 2.23 for building and in the autopkgtest tests to ensure that ar understands the option to suppress determinism.

    2014-10-21 - John Wright <> python-debian (0.1.25) unstable; urgency=medium * deb822: More encoding gymnastics to support parsing signed files opened in text mode (Closes: #764380).

    2014-10-01 - Stefano Zacchiroli <> python-debian (0.1.24) unstable; urgency=medium * copyright module: make Copyright objects iterable * debian_support.list_releases(): update release list (Closes: #758027)

    2014-09-10 - John Wright <> python-debian (0.1.23) unstable; urgency=medium [ Stuart Prescott ] * Add sha512 sums to Release and Sources (Closes: #732599). * Use warnings rather than stderr in PkgRelation (Closes: #712513). * Expose the list of bugs closed by a changelog entry; thanks to Jelmer Vernooi and Stefano Rivera for patches (Closes: #634848). * Add support for .deb with uncompressed data.tar member (Closes: #718355). * Prefer the internal parser rather than apt's TagFile for processing deb822 files unless explicitly called to process Packages or Sources files: - prevents paragraph parsing truncating on comments (Closes: #743174). - fix parsing of paragraphs when separated by more whitespace than just a newline (Closes: #655988). (Finally fixing interactions with devscripts' wrap-and-sort!) * Parse foreign architecture (package:any) relationships and also other multi-arch related relationships (Closes: #670679) * Parse build-profiles syntax. [ John Wright ] * Fix a GPG validation bug. With some trailing whitespace, the code could be tricked into validating a signature, but using the bogus data after the signed section (Closes: #695932). * Drop support for python2.5. (This allows us to do fewer import hacks in deb822, and probably other modules as well.) * Add a deb822.RestrictedWrapper class, for exposing read-only access to a Deb822 instance's field values as strings, while restricting write access to some fields, which are exposed via properties. * deb822.Deb822Dict.dump: Add a text_mode parameter for dumping to file(-like) objects that assume text/unicode input. * Add a copyright module, for parsing machine-readable debian/copyright files (Closes: #671485). * Make deb822 tests hermetic with respect to debian-keyring updates (Closes: #760488).

    2014-08-05 - Matthias Klose <> python-debian (0.1.22ubuntu1) utopic; urgency=medium * Merge with Debian; remaining changes: - Add .lzma as a possible extension for data.tar. Note that this does not mean that reading from the .lzma part is supported. This is blocked on