{ "info": { "author": "Nils Diefenbach", "author_email": "nlsdfnbch.foss@kolabnow.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Version Control" ], "description": "# Gerrit Hooks Argument Parsers\n\nThis library provides pre-built `argparse.ArgumentParser` instances, which\nreturn `argpase.NameSpace` object for gerrit's hooks (linked in the [Resources](#resources) section below).\n\n\nIt allows developers to get started with gerrit hooks faster, by \ngetting the parsing of command-line arguments for the various hook types\n out of the way.\n\nAll hooks are supported.\n\n# Installation\n\n```\npip install gerrit-hooks\n```\n\n# Usage\n\nWriting hooks using gerrit-hooks' argparsers is easy:\n\n```python\n> gerrit/hooks/comment-added\n\n#!/usr/bin/env/python3\nimport gerrit_hooks\n\noptions = gerrit_hooks.parse_options()\n\nprint(\"Change ID: {}\".format(options.change))\n\n...\n\n```\n\nCustom approval categories are supported as well - these must be added\nbefore calling `gerrit_hooks.parse_options()`:\n\n```python\n> gerrit/hooks/comment-added\n\n#!/usr/bin/env/python3\nimport gerrit_hooks\n\n# Let's assume you have a approval category with label 'level-of-amazingness\n# We need to add this to the Hook Flag Definitions class\ngerrit_hooks.add_custom_approval_category('level-of-amazingness')\n\noptions = gerrit_hooks.parse_options()\n\n# The approval category can be accessed by the following attributes:\nprint(\"Level of Amazingness is: {}\".format(options.level_of_amazingness))\nprint(\"Level of Amazingness was: {}\".format(options.level_of_amazingness_oldValue))\n\n...\n\n```\n\n# Resources\n\n[Gerrit-Hooks Plugin](https://gerrit-review.googlesource.com/admin/repos/plugins%2Fhooks)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "gerrit-hooks", "package_url": "https://pypi.org/project/gerrit-hooks/", "platform": "", "project_url": "https://pypi.org/project/gerrit-hooks/", "project_urls": null, "release_url": "https://pypi.org/project/gerrit-hooks/2.0.0/", "requires_dist": null, "requires_python": "", "summary": "Utility for writing Gerrit Hooks in python", "version": "2.0.0" }, "last_serial": 4521848, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "ed1d3e97e16c40e11cf21a0e7f918280", "sha256": "1c38ac0f0ddd37e065f605c87a97f61d473c49cf5d937c9f248b307a2afb650d" }, "downloads": -1, "filename": "gerrit_hooks-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ed1d3e97e16c40e11cf21a0e7f918280", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7031, "upload_time": "2018-09-14T09:09:58", "url": "https://files.pythonhosted.org/packages/5d/fc/8ab0b2700e3612a9def4c2750369e4f36828ead597256b9cc280cbd308c7/gerrit_hooks-1.0.0-py3-none-any.whl" } ], "1.0.0b0": [ { "comment_text": "", "digests": { "md5": "3bdc9553752c719d259bdc9450a43dd7", "sha256": "e66e264e7e7dfd69aa208cba28d40c7a66e15e92e077421e28d1d2a483b3c242" }, "downloads": -1, "filename": "gerrit_hooks-1.0.0b0-py3-none-any.whl", "has_sig": false, "md5_digest": "3bdc9553752c719d259bdc9450a43dd7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4713, "upload_time": "2018-09-07T17:26:35", "url": "https://files.pythonhosted.org/packages/20/4a/9fb9f573004cfd5d58cffbb433061c4b9c79ca89b5fc5e694c82647d865d/gerrit_hooks-1.0.0b0-py3-none-any.whl" } ], "1.0.0b1": [ { "comment_text": "", "digests": { "md5": "4fe3751cc0634fe2aae90752e92e0c95", "sha256": "f0e36a571151fb81507e960cb0ddb38b984d1b78ee86b43f0f31039d5a916c4e" }, "downloads": -1, "filename": "gerrit_hooks-1.0.0b1-py3-none-any.whl", "has_sig": false, "md5_digest": "4fe3751cc0634fe2aae90752e92e0c95", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4834, "upload_time": "2018-09-07T17:43:06", "url": "https://files.pythonhosted.org/packages/ed/89/8451129d23f44f08e5aee95192f97f598c7138f99fc1aa67d0c2e7f84ea6/gerrit_hooks-1.0.0b1-py3-none-any.whl" } ], "1.0.0b2": [ { "comment_text": "", "digests": { "md5": "3d9f0175b40601db531184c340ed3f5d", "sha256": "6d1d0fbc423978f0f330ee91ebb07f2c032ea6dd2d5a843e098a0451a0f8774d" }, "downloads": -1, "filename": "gerrit_hooks-1.0.0b2-py3-none-any.whl", "has_sig": false, "md5_digest": "3d9f0175b40601db531184c340ed3f5d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6057, "upload_time": "2018-09-07T19:16:58", "url": "https://files.pythonhosted.org/packages/bf/f8/8f1a898b516e3e7c71e3ca9c8fe67480ea553d0252db5a8b640b2d20b753/gerrit_hooks-1.0.0b2-py3-none-any.whl" } ], "1.0.0b3": [ { "comment_text": "", "digests": { "md5": "abb493f07affcf8b615d51664973d7ae", "sha256": "02afe927a01e9ac2473be2cd0ef443d4b445c3950e0bed92fbde2c57d9aa69b1" }, "downloads": -1, "filename": "gerrit_hooks-1.0.0b3-py3-none-any.whl", "has_sig": false, "md5_digest": "abb493f07affcf8b615d51664973d7ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5087, "upload_time": "2018-09-13T09:29:11", "url": "https://files.pythonhosted.org/packages/83/69/53aa369737ae0929e58298a83a7d9d0f0c55f971836e0dc7d9f4afe455a9/gerrit_hooks-1.0.0b3-py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3eb32108ba683420d6e781a4055d649d", "sha256": "51c602e81cd257964a62376a9c5fa5c733984286f50df67b6f3cb43ba02c660c" }, "downloads": -1, "filename": "gerrit_hooks-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3eb32108ba683420d6e781a4055d649d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7052, "upload_time": "2018-09-14T09:14:02", "url": "https://files.pythonhosted.org/packages/4e/56/bb7b1223bad83d88b00a5b55b180d9a6a11795a4e308375e3332d256ca8d/gerrit_hooks-1.0.1-py3-none-any.whl" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "7aa74c75db6d895db5c9230fe2f49e80", "sha256": "ded61ad23b25b7bcd19c17e28f49749d96ae05576767d4115cf344492a05a63a" }, "downloads": -1, "filename": "gerrit_hooks-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7aa74c75db6d895db5c9230fe2f49e80", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12910, "upload_time": "2018-11-23T22:24:58", "url": "https://files.pythonhosted.org/packages/49/14/26c7da8018faa7aefd9ad5f325fe684e818cc17bb046a958e09d6bddcc72/gerrit_hooks-2.0.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7aa74c75db6d895db5c9230fe2f49e80", "sha256": "ded61ad23b25b7bcd19c17e28f49749d96ae05576767d4115cf344492a05a63a" }, "downloads": -1, "filename": "gerrit_hooks-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7aa74c75db6d895db5c9230fe2f49e80", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12910, "upload_time": "2018-11-23T22:24:58", "url": "https://files.pythonhosted.org/packages/49/14/26c7da8018faa7aefd9ad5f325fe684e818cc17bb046a958e09d6bddcc72/gerrit_hooks-2.0.0-py3-none-any.whl" } ] }