{ "info": { "author": "Gary M. Josack", "author_email": "gary@dropbox.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\n.. image:: https://travis-ci.org/dropbox/pygerduty.svg?branch=master\n :target: https://travis-ci.org/dropbox/pygerduty\n\n=========\nPygerduty\n=========\n\nPython Library for PagerDuty's v1 REST API.\n\nThis library is currently evolving and backwards compatibility cannot always be guaranteed at this time.\n\n\nInstallation\n============\n\nYou can install with ``pip install pygerduty``.\n\nIf you want to install from source, then ``python setup.py install``.\n\n\nRequirements\n============\n\nPygerduty is tested against >= Python 2.5\n\n``simplejson`` is required on Python2.5\n\n\nDocumentation\n=============\n\nPygerduty is a thin wrapper around PagerDuty's APIs. You will need to refer\nto the the `PagerDuty Documentation `_ for\nall available parameters to pass and all available attributes on responses.\n\nThe main methods available to resources are list, show, create, update, and\ndelete. Not all resources have endpoints for all of the above methods. Again,\nrefer to the `PagerDuty Documentation `_ to\nsee all available endpoints.\n\nTop level resources will be accessible via the PagerDuty object and nested\nresources available on containers returned from their parent resource.\n\n\nExamples\n========\n\nInstantiating a client:\n\n::\n\n import pygerduty\n pager = pygerduty.PagerDuty(\"foobar\", \"SOMEAPIKEY123456\")\n\nListing a resource:\n\n::\n\n for schedule in pager.schedules.list():\n print schedule.id, schedule.name\n\n # PX7F8S3 Primary\n # PJ48C0S Tertiary\n # PCJ94SK Secondary\n\nGetting a resource by ID:\n\n::\n\n schedule = pager.schedules.show(\"PX7F8S3\")\n\nCreating a resource:\n\n::\n\n user = next(pager.users.list(query=\"gary\", limit=1))\n override = schedule.overrides.create(\n start=\"2012-12-16\", end=\"2012-12-17\", user_id=user.id)\n\nDelete a resource:\n\n::\n\n schedule.overrides.delete(override.id)\n\n\nUpdating a resource:\n\n::\n\n pagerduty.users.update(user.id, name=\"Gary Example\")\n\n\nAcknowledging a group by incidents:\n\n::\n\n me = next(pager.users.list(query=\"me@you.com\", limit=1))\n for incident in pagerduty.incidents.list(status='triggered'):\n incident.acknowledge(requester_id=me.id)\n", "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/cardforcoin/pygerduty", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pygerduty-py3", "package_url": "https://pypi.org/project/pygerduty-py3/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pygerduty-py3/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cardforcoin/pygerduty" }, "release_url": "https://pypi.org/project/pygerduty-py3/0.28.2/", "requires_dist": null, "requires_python": null, "summary": "Python Client Library for PagerDuty's REST API", "version": "0.28.2" }, "last_serial": 1714722, "releases": { "0.28": [ { "comment_text": "", "digests": { "md5": "1addba938be6747617e814dd92a2e294", "sha256": "f455f8b7d4a63a8df02a7043cf08d847438ea549b9e9602b060393e38993d1e5" }, "downloads": -1, "filename": "pygerduty-py3-0.28.tar.gz", "has_sig": false, "md5_digest": "1addba938be6747617e814dd92a2e294", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8759, "upload_time": "2015-09-09T06:15:28", "url": "https://files.pythonhosted.org/packages/79/1a/a4e2b2cd9eefd0079ef986efcfc8d71eb0af7c9ea606354c1203575bdf5b/pygerduty-py3-0.28.tar.gz" } ], "0.28.1": [ { "comment_text": "", "digests": { "md5": "848c0c036606733248d92f9b913b53ab", "sha256": "2594c949267515bf1eed65d9cbba411d374d83c97e70ce3bbe092bb9ee0f6485" }, "downloads": -1, "filename": "pygerduty-py3-0.28.1.tar.gz", "has_sig": false, "md5_digest": "848c0c036606733248d92f9b913b53ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8769, "upload_time": "2015-09-09T06:18:26", "url": "https://files.pythonhosted.org/packages/1e/ca/04bae971bef0541bf476ee1b6dd4a5863a46bfc8bdc84e71928997a86dbf/pygerduty-py3-0.28.1.tar.gz" } ], "0.28.2": [ { "comment_text": "", "digests": { "md5": "c6e823440950618a4f4007d6ac8f3a28", "sha256": "bbe9b67cad5e27ca9932bde745250bfa378740212f7a7a333a71063c2e342406" }, "downloads": -1, "filename": "pygerduty-py3-0.28.2.tar.gz", "has_sig": false, "md5_digest": "c6e823440950618a4f4007d6ac8f3a28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8775, "upload_time": "2015-09-09T06:26:03", "url": "https://files.pythonhosted.org/packages/47/fb/30299cc95799558084c9415681d5b0ea16d6bb5d48a7588fd6411e0189a6/pygerduty-py3-0.28.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c6e823440950618a4f4007d6ac8f3a28", "sha256": "bbe9b67cad5e27ca9932bde745250bfa378740212f7a7a333a71063c2e342406" }, "downloads": -1, "filename": "pygerduty-py3-0.28.2.tar.gz", "has_sig": false, "md5_digest": "c6e823440950618a4f4007d6ac8f3a28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8775, "upload_time": "2015-09-09T06:26:03", "url": "https://files.pythonhosted.org/packages/47/fb/30299cc95799558084c9415681d5b0ea16d6bb5d48a7588fd6411e0189a6/pygerduty-py3-0.28.2.tar.gz" } ] }