python-debian 1.0.1


pip install python-debian

  Latest version

Released: Mar 11, 2025

Project Links

Meta
Author: Debian python-debian Maintainers
Requires Python: >=3.7

Classifiers

Development Status
  • 5 - Production/Stable

Programming Language
  • Python

Intended Audience
  • Developers

License
  • DFSG approved
  • OSI Approved :: GNU General Public License v2 or later (GPLv2+)

Operating System
  • POSIX

The debian Python modules work with Debian-related data formats, providing a means to read data from files involved in Debian packaging, and the distribution of Debian packages. The ability to create or edit the files is also available for some formats.

Currently supported 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 (debian.debfile module)

API documentation, can be found online and throughout the code. There are examples both within the code and in the examples directory.

Note that some modules can use python-apt to speed up processing.

Contributions to python-debian are most welcome, including expansion of the module’s capabilities. If you have a module that is for manipulation or interrogation of Debian specific data then consider adding it to this package. Please discuss your ideas on the mailing list, make merge requests via the salsa repository, and see the Contributing section of the documentation.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
charset-normalizer