# webkitbugspy
Provides a shared API for various bug trackers.
## Requirements
- webkitcorepy
## Usage
The `webkitbugspy` library implements a generic issue tracker API compatible with multiple bug and issue trackers. To interact with an `Issue`, first instantiate a tracker:
```
from webkitbugspy import github
tracker = github.Tracker('https://github.com/WebKit/WebKit')
issue = tracker.issue(1)
```
You should register all trackers your project interacts with so that an `Issue` in one tracker can cross-reference issues in other trackers:
```
from webkitbugspy import bugzilla, github
Tracker.register(bugzilla.Tracker('https://bugs.webkit.org', res=[
re.compile(r'\Ahttps?://webkit.org/b/(?P<id>\d+)\Z'),
re.compile(r'\Awebkit.org/b/(?P<id>\d+)\Z'),
]))
Tracker.register(github.Tracker('https://github.com/WebKit/WebKit'))
print(Tracker.from_string('https://github.com/WebKit/WebKit/issues/47').references)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/WebKit/WebKit/tree/main/Tools/Scripts/libraries/webkitbugspy",
"name": "webkitbugspy",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python unicode",
"author": "Jonathan Bedard",
"author_email": "jbedard@apple.com",
"download_url": "https://files.pythonhosted.org/packages/56/ce/8779cab7622afb036689e4153965e93c8e6426f7718a4cb26bbaf3f59c89/webkitbugspy-0.15.1.tar.gz",
"platform": null,
"description": "# webkitbugspy\n\nProvides a shared API for various bug trackers.\n\n## Requirements\n\n- webkitcorepy\n\n## Usage\n\nThe `webkitbugspy` library implements a generic issue tracker API compatible with multiple bug and issue trackers. To interact with an `Issue`, first instantiate a tracker:\n\n```\nfrom webkitbugspy import github\n\ntracker = github.Tracker('https://github.com/WebKit/WebKit')\nissue = tracker.issue(1)\n```\n\nYou should register all trackers your project interacts with so that an `Issue` in one tracker can cross-reference issues in other trackers:\n\n```\nfrom webkitbugspy import bugzilla, github\n\nTracker.register(bugzilla.Tracker('https://bugs.webkit.org', res=[\n re.compile(r'\\Ahttps?://webkit.org/b/(?P<id>\\d+)\\Z'),\n re.compile(r'\\Awebkit.org/b/(?P<id>\\d+)\\Z'),\n]))\nTracker.register(github.Tracker('https://github.com/WebKit/WebKit'))\n\nprint(Tracker.from_string('https://github.com/WebKit/WebKit/issues/47').references)\n```\n",
"bugtrack_url": null,
"license": "Modified BSD",
"summary": "Library containing a shared API for various bug trackers.",
"version": "0.15.1",
"project_urls": {
"Homepage": "https://github.com/WebKit/WebKit/tree/main/Tools/Scripts/libraries/webkitbugspy"
},
"split_keywords": [
"python",
"unicode"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7895fa284ddf33afe46804d2e3373b737668e7e596381a279d93bda775b1a26c",
"md5": "06f5b7b3bb94594524ccb148f85a50ff",
"sha256": "139b091daa76c80548384405de2ab9f055501a274c8df84f1107333cd5c23a9e"
},
"downloads": -1,
"filename": "webkitbugspy-0.15.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "06f5b7b3bb94594524ccb148f85a50ff",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 66484,
"upload_time": "2024-10-18T17:58:31",
"upload_time_iso_8601": "2024-10-18T17:58:31.671629Z",
"url": "https://files.pythonhosted.org/packages/78/95/fa284ddf33afe46804d2e3373b737668e7e596381a279d93bda775b1a26c/webkitbugspy-0.15.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "56ce8779cab7622afb036689e4153965e93c8e6426f7718a4cb26bbaf3f59c89",
"md5": "f65afc5d8e9e77f027fc49b53ac42212",
"sha256": "250ebb933d82bb8a1730fefe11271b69e3ae1860fb8634960c97dbeb36970a1a"
},
"downloads": -1,
"filename": "webkitbugspy-0.15.1.tar.gz",
"has_sig": false,
"md5_digest": "f65afc5d8e9e77f027fc49b53ac42212",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 46947,
"upload_time": "2024-10-18T17:58:33",
"upload_time_iso_8601": "2024-10-18T17:58:33.426178Z",
"url": "https://files.pythonhosted.org/packages/56/ce/8779cab7622afb036689e4153965e93c8e6426f7718a4cb26bbaf3f59c89/webkitbugspy-0.15.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-18 17:58:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "WebKit",
"github_project": "WebKit",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "webkitbugspy"
}