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

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Universe amd64
Package name python-debian
Package version 0.1.27ubuntu2
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


Package Version Architecture Repository
python-debian_0.1.27ubuntu2_all.deb 0.1.27ubuntu2 all Ubuntu Universe
python-debian - - -


Name Value
python-chardet -
python-six >> 1.4~
python:any << 2.8
python:any >= 2.7.5-5~


Name Value
python-deb822 -


Name Value
python-deb822 -


Name Value
python-deb822 -


Type URL
Binary Package python-debian_0.1.27ubuntu2_all.deb
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




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'
* 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

See Also

Package Description
python-debianbts_2.6.0_all.deb Python interface to Debian's Bug Tracking System
python-debiancontributors_0.7.5-2_all.deb Manage submissions to
python-debtagshw_2.0.1ubuntu6_all.deb Match debtags hardware:: tags against the actual hardware
python-decoratortools_1.8-3_all.deb transitional dummy package for python-peak.util.decorators
python-defer_1.0.6-2build1_all.deb Small framework for asynchronous programming (Python 2)
python-defusedxml_0.4.1-2build1_all.deb XML bomb protection for Python stdlib modules (for Python 2)
python-deltarpm_3.6+dfsg-1build4_amd64.deb Python bindings for deltarpm
python-demgengeo_1.2-1build1_amd64.deb DEMGenGeo is a library for creating geometry files
python-demjson_2.2.4-1_all.deb encoder, decoder, and lint/validator for JSON in Python
python-dendropy_4.0.3+dfsg-1_all.deb DendroPy Phylogenetic Computing Library (Python 2)
python-derpconf_0.7.3-1_all.deb Python module to abstract loading configuration files for your app
python-descartes_1.0.1-2_all.deb Matplotlib extension to work with geometric objects (Python2)
python-designate-dashboard_2.0.0-1_all.deb OpenStack DNS as a Service - dashboard plugin
python-designate_2.0.0-0ubuntu1_all.deb OpenStack DNS as a Service - Python libs
python-dexml_0.5.1-1_all.deb Dead-simple Object-XML mapper for Python