Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A client library for Bugzilla

Project Description

Simple Bugzilla interface


Because other libraries I found had limited API support (like no attachment support), complex implementation, and don’t seem very supported/taking PRs :)

For example most of what can be done with a 1000SLOC lib is done in this one with 100SLOC.


You can and should get an API KEY from Bugzilla with a Bugzilla account to your instance, in the user preferences. Everything is basically a DocDict (a dict() you can address like an object i.e. dict[‘x’] is also dict.x). The contents of the DotDict reflects the exact output of the API, i.e. any JSON the API sends is what you’ll find in the DotDict. Any data you need to send to the API uses the same names as well. See full doc at or/and just look at the output of the examples.


import bugzilla

b = bugzilla.Bugzilla(url="", api_key="your api key")
#Just getting a bug
bug = b.get_bug(1001)
print(, bug.status)
#All attributes - it's just a dot dict.

#Making a bug
bug = bugzilla.DotDict()
bug.product = 'My product'
bug.component = 'My component'
bug.summary = 'A test bug'
bug.whiteboard 'my_flag'

#Adding an attachment
attachment = bugzilla.DotDict()
attachment.file_name = 'clowns.txt'
attachment.summary = 'Test attachement' = 'some ASCII content'
print(b.post_attachment(1001, attachment))

#Search for stuff
terms = [{'product': 'MyProduct'}, {'product': 'MyOtherProduct'}, {'status': 'NEW'}]
#Or more easily
print(b.quick_search('test bug'))


  • Currently it does not work without an API key.
  • Currently only support ASCII attachments as string.
  • Some more obscure API methods are not implemented, like classifieds.
Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
bugzilla-1.0.0.tar.gz (8.6 kB) Copy SHA256 Checksum SHA256 Source Jun 20, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting