{ "info": { "author": "Guillaume Destuynder", "author_email": "gdestuynder@mozilla.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Simple Bugzilla interface\n=========================\n\nWhy?\n====\nBecause other libraries I found had limited API support (like no attachment support), complex implementation, and don't seem very supported/taking\nPRs :)\n\nFor example most of what can be done with a 1000SLOC lib is done in this one with 100SLOC.\n\nUsage\n=====\n\nYou can and should get an API KEY from Bugzilla with a Bugzilla account to your instance, in the user preferences.\nEverything is basically a DocDict (a dict() you can address like an object i.e. dict['x'] is also dict.x).\nThe 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\nDotDict. Any data you need to send to the API uses the same names as well.\nSee full doc at http://bugzilla.readthedocs.org/en/latest/api/core/v1/ or/and just look at the output of the examples.\n\nExamples\n--------\n\n.. code:: Python\n\n import bugzilla\n \n b = bugzilla.Bugzilla(url=\"https://bugzilla-dev.allizom.org/rest/\", api_key=\"your api key\")\n #Just getting a bug\n bug = b.get_bug(1001)\n print(bug.id, bug.status)\n #All attributes - it's just a dot dict.\n print(bug)\n \n #Making a bug\n bug = bugzilla.DotDict()\n bug.product = 'My product'\n bug.component = 'My component'\n bug.summary = 'A test bug'\n bug.whiteboard 'my_flag'\n print(b.post_bug(bug))\n\n #Adding an attachment\n attachment = bugzilla.DotDict()\n attachment.file_name = 'clowns.txt'\n attachment.summary = 'Test attachement'\n attachment.data = 'some ASCII content'\n print(b.post_attachment(1001, attachment))\n\n #Search for stuff\n terms = [{'product': 'MyProduct'}, {'product': 'MyOtherProduct'}, {'status': 'NEW'}]\n print(b.search_bugs(terms))\n #Or more easily\n print(b.quick_search('test bug'))\n\n\nTODO\n====\n\n- Currently it does not work without an API key.\n- Currently only support ASCII attachments as string.\n- Some more obscure API methods are not implemented, like classifieds.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gdestuynder/simple_bugzilla", "keywords": "bugzilla client library", "license": "MPL", "maintainer": null, "maintainer_email": null, "name": "bugzilla", "package_url": "https://pypi.org/project/bugzilla/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bugzilla/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/gdestuynder/simple_bugzilla" }, "release_url": "https://pypi.org/project/bugzilla/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "A client library for Bugzilla", "version": "1.0.0" }, "last_serial": 1599809, "releases": { "1.0": [], "1.0\n": [], "1.0.0": [ { "comment_text": "", "digests": { "md5": "c48e206e0544692c0543a7eca23e16b2", "sha256": "6e864ddafc4e46c821c1f3735d7c9686522a4eece056be0cadf51221e22dfa11" }, "downloads": -1, "filename": "bugzilla-1.0.0.tar.gz", "has_sig": true, "md5_digest": "c48e206e0544692c0543a7eca23e16b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8564, "upload_time": "2015-06-20T00:03:49", "url": "https://files.pythonhosted.org/packages/94/6a/e5d97bef32ccb695d158fb3f726e32f509bbd803257d7c0becfeae60d723/bugzilla-1.0.0.tar.gz" } ], "1.0.0\n": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "c48e206e0544692c0543a7eca23e16b2", "sha256": "6e864ddafc4e46c821c1f3735d7c9686522a4eece056be0cadf51221e22dfa11" }, "downloads": -1, "filename": "bugzilla-1.0.0.tar.gz", "has_sig": true, "md5_digest": "c48e206e0544692c0543a7eca23e16b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8564, "upload_time": "2015-06-20T00:03:49", "url": "https://files.pythonhosted.org/packages/94/6a/e5d97bef32ccb695d158fb3f726e32f509bbd803257d7c0becfeae60d723/bugzilla-1.0.0.tar.gz" } ] }