{"id":154,"date":"2015-09-23T20:11:39","date_gmt":"2015-09-23T20:11:39","guid":{"rendered":"https:\/\/devzing.com\/blog\/?p=154"},"modified":"2015-09-30T02:27:04","modified_gmt":"2015-09-30T02:27:04","slug":"access-bugzilla-from-python","status":"publish","type":"post","link":"https:\/\/devzing.com\/blog\/index.php\/access-bugzilla-from-python\/","title":{"rendered":"Access Bugzilla from Python"},"content":{"rendered":"<p>The python-bugzilla package is available on <a href=\"https:\/\/github.com\/python-bugzilla\/python-bugzilla\" target=\"_blank\">GitHub<\/a> or <a href=\"https:\/\/pypi.python.org\/pypi\/python-bugzilla\/1.2.2\" target=\"_blank\">PyPi<\/a><\/p>\n<pre class=\"lang:sh decode:true \">pip install python-bugzilla<\/pre>\n<p>This package provides two bits:<\/p>\n<ul>\n<li>&#8216;bugzilla&#8217; python module for talking to a Bugzilla instance over XMLRPC<\/li>\n<li>\/usr\/bin\/bugzilla command line tool for performing actions from the command line: create or edit bugs, various queries, etc.<\/li>\n<\/ul>\n<p>This was originally written specifically for Red Hat\u2019s Bugzilla instance and is used heavily at Red Hat and in Fedora, but it should still be generically useful.<\/p>\n<p>Example<\/p>\n<pre class=\"lang:python decode:true \">import bugzilla\r\nbz = bugzilla.Bugzilla(url=\"https:\/\/bugzilla.kernel.org\")\r\nprint bz.getbug(1)<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The python-bugzilla package is available on GitHub or PyPi pip install python-bugzilla This package provides two bits: &#8216;bugzilla&#8217; 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\u2019s Bugzilla &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/devzing.com\/blog\/index.php\/access-bugzilla-from-python\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Access Bugzilla from Python&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-154","post","type-post","status-publish","format-standard","hentry","category-bugzilla","entry"],"_links":{"self":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":5,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/154\/revisions\/162"}],"wp:attachment":[{"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devzing.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}