Access Bugzilla from Python


The python-bugzilla package is available on GitHub or PyPi

pip install python-bugzilla

This package provides two bits:

  • ‘bugzilla’ python module for talking to a Bugzilla instance over XMLRPC
  • /usr/bin/bugzilla command line tool for performing actions from the command line: create or edit bugs, various queries, etc.

This was originally written specifically for Red Hat’s Bugzilla instance and is used heavily at Red Hat and in Fedora, but it should still be generically useful.

Example

import bugzilla
bz = bugzilla.Bugzilla(url="https://bugzilla.kernel.org")
print bz.getbug(1)

 

Tired of managing your Bugzilla? We are the experts at hosting Bugzilla. Free migration from your existing Bugzilla. We keep everything patched, updated, backed up and running fast.

Find out more