{ "info": { "author": "Angel Velasquez", "author_email": "avelasquez@sangoma.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "=============================\nSensu client for python\n=============================\n\n.. image:: https://badge.fury.io/py/pysensu-ng.svg\n :target: https://badge.fury.io/py/pysensu-ng\n\n.. image:: https://travis-ci.org/sangoma/pysensu.png?branch=master\n :target: https://travis-ci.org/sangoma/pysensu\n\n.. image:: https://pypip.in/d/pysensu-ng/badge.png\n :target: https://pypi.python.org/sangoma/pysensu-ng\n\n\nThis is a client to interact with the Sensu API\n\n\nFeatures\n--------\n\n- Includes methods for some entrypoints (clients, events, checks, stashes) of the Sensu API (0.24)\n **IMPORTANT**: from 0.6.0 release we are supporting Sensu API 0.24+ .. backward\n compatibility with previous versions of Sensu API might be broken.\n- Includes methods for handle subscriptions info (nodes subscribed to a\n specific channel)\n\n\nTrivial Example\n---------------\n\n::\n\n from pysensu.api import SensuAPI\n\n url = 'http://localhost:4567'\n my_sensu = SensuAPI(url, username=username, password=password)\n print(my_sensu.get_info())\n\nDEBUG\n---------------\nTo enable debug import logging module and set the debug level\n\n::\n\n import logging\n logging.getLogger('pysensu.api').setLevel(logging.DEBUG)\n\nExceptions\n---------------\nYou can handle an exception using a code like this.\nNote: Sensu API give you a 404 code if a client does not exists.\n\n::\n\n import pysensu.api\n\n url = 'http://localhost:4567'\n my_sensu = pysensu.api.SensuAPI(url)\n client = \"testclient\"\n\n try:\n print(my_sensu.get_client_data(client))\n except pysensu.api.SensuAPIException as e:\n if \"404\" in str(e):\n print(\"{} does not exists on sensu api\".format(client))\n else:\n raise e\n\n\n\nDocumentation\n-------------\n\nThe full documentation is at http://pysensu.rtfd.org.\n\n\n\nHistory\n-------\n\n0.13.0 (2019-07-23)\n~~~~~~~~~~~~~~~~~~~\n\n0.10.0 (2017-05-17)\n~~~~~~~~~~~~~~~~~~~\n\n* Add support for results API\n\n0.9.0 (2017-03-13)\n~~~~~~~~~~~~~~~~~~\n\n* Add support for silenced API\n\n0.8.0 (2016-11-28)\n~~~~~~~~~~~~~~~~~~\n\n* Added operations for Aggregates and Status (Health/Info)\n* Added support for optional limit/offset parameters to get_clients\n* Modified post_check_request to work properly with subscribers.\n\n0.7.0 (2016-08-17)\n~~~~~~~~~~~~~~~~~~\n\n* Fix adding stashes\n\n0.6.0 (2016-08-02)\n~~~~~~~~~~~~~~~~~~\n\n* Fix calls to Sensu API entrypoints in order to make them compatible\n with lastest version of Sensu API (0.24) previous versions of Sensu API\n might not behave as expected.\n\n0.1.0 (2015-12-15)\n~~~~~~~~~~~~~~~~~~\n\n* First release on PyPI.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sangoma/pysensu", "keywords": "pysensu", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pysensu-ng", "package_url": "https://pypi.org/project/pysensu-ng/", "platform": "", "project_url": "https://pypi.org/project/pysensu-ng/", "project_urls": { "Homepage": "https://github.com/sangoma/pysensu" }, "release_url": "https://pypi.org/project/pysensu-ng/0.13.0/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "This is a client to interact with the Sensu API", "version": "0.13.0" }, "last_serial": 5572958, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "1b2b986f75810e5354a18f01e5ddd69b", "sha256": "40cff7a82ca3d4e63b97d3e6b0dacfe995fea2e1d52d8598fe87dcc134895115" }, "downloads": -1, "filename": "pysensu-ng-0.10.0.tar.gz", "has_sig": false, "md5_digest": "1b2b986f75810e5354a18f01e5ddd69b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6826, "upload_time": "2017-05-17T21:59:11", "url": "https://files.pythonhosted.org/packages/3b/12/30d6f609b54aee99957f0e41d64572552353e66b4b1ba91d6bad83e11f37/pysensu-ng-0.10.0.tar.gz" } ], "0.11.0": [ { "comment_text": "", "digests": { "md5": "38b6614f9c37d9c3c316e8d78a9b7577", "sha256": "43e82f12e9ab252cc5409931095255b907b45d6ea7118773ab52a8f28a4867a6" }, "downloads": -1, "filename": "pysensu-ng-0.11.0.tar.gz", "has_sig": false, "md5_digest": "38b6614f9c37d9c3c316e8d78a9b7577", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7157, "upload_time": "2018-03-20T00:51:31", "url": "https://files.pythonhosted.org/packages/b3/07/ebba92533cc75f695db356b5f918c6d7718fd30b41f8ac1e20b7d79691df/pysensu-ng-0.11.0.tar.gz" } ], "0.12.0": [ { "comment_text": "", "digests": { "md5": "978545222a13740fc86223415ec81fbc", "sha256": "408a340d20c910c827d1d570010f13ecac835e5edc4484a67b4b1b69e2447b3e" }, "downloads": -1, "filename": "pysensu-ng-0.12.0.tar.gz", "has_sig": false, "md5_digest": "978545222a13740fc86223415ec81fbc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6775, "upload_time": "2018-06-27T21:03:14", "url": "https://files.pythonhosted.org/packages/d4/c8/ee0261668f918e644729a47deb507ad3302ad120cb9ce3314cd33188f602/pysensu-ng-0.12.0.tar.gz" } ], "0.13.0": [ { "comment_text": "", "digests": { "md5": "b96d2e6db8a8c7645fa42aac1cbe55fe", "sha256": "6f5bf8eedbcd76820ac66a3c386dafb3cb439e3c5a447f5d41f5d8ddd156bc83" }, "downloads": -1, "filename": "pysensu_ng-0.13.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b96d2e6db8a8c7645fa42aac1cbe55fe", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6122, "upload_time": "2019-07-23T15:14:01", "url": "https://files.pythonhosted.org/packages/11/fe/a13ed223744b0ecb6206b4e718307d90af828e65cc01a32259c78e4d6bdb/pysensu_ng-0.13.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1205cdbfdd28969a8348358a00b4ef25", "sha256": "c423a625a87e585cbfb3f177b3ab7e197b11553c9b344316434c091f7b906a90" }, "downloads": -1, "filename": "pysensu-ng-0.13.0.tar.gz", "has_sig": false, "md5_digest": "1205cdbfdd28969a8348358a00b4ef25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7245, "upload_time": "2019-07-23T15:14:03", "url": "https://files.pythonhosted.org/packages/f5/a1/5f0e9fbb3672ea62cdd05d138b4470d8d88bee57fbf9cde056e64e6ed13c/pysensu-ng-0.13.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "034edf1990f55e88838ef3e7c35897e0", "sha256": "1e48e60395143cb52401fa124a893dff43759fa7e4c8bbfa6e41793d2e328bb3" }, "downloads": -1, "filename": "pysensu-ng-0.2.0.tar.gz", "has_sig": false, "md5_digest": "034edf1990f55e88838ef3e7c35897e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5087, "upload_time": "2016-01-04T23:08:24", "url": "https://files.pythonhosted.org/packages/02/3e/7223ab7039ad568118aea3491d33b423e905dac43e4ba301490fa492d50f/pysensu-ng-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "db53dcaa1b9d17afd9a8cd3bfa2ccff4", "sha256": "484e843f6c95077366548f81f1a2cbe3454cdaf8d281ab3c40210ad1f8b1b79e" }, "downloads": -1, "filename": "pysensu-ng-0.3.0.tar.gz", "has_sig": false, "md5_digest": "db53dcaa1b9d17afd9a8cd3bfa2ccff4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5112, "upload_time": "2016-01-19T22:02:03", "url": "https://files.pythonhosted.org/packages/f5/0c/4472fd658056362520f31b9053b17d7d6654024e1b42805a3ef5cf0fe3a9/pysensu-ng-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "552593a324473753ec93538d76a9a671", "sha256": "9292a0de9cf7c5179462f53e33437d994738ae6e9840263b4639d3411a718ad4" }, "downloads": -1, "filename": "pysensu-ng-0.4.0.tar.gz", "has_sig": false, "md5_digest": "552593a324473753ec93538d76a9a671", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5191, "upload_time": "2016-02-18T22:52:59", "url": "https://files.pythonhosted.org/packages/be/26/b80ebebf523fd32c86d59ce351f71bc4058919cd898509cbdac7fdd9c13e/pysensu-ng-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "24bd5de8e358775f6af1bcadabbf0828", "sha256": "e53ae86b4554a20c323e3b8e0546d2a3c05c9d321c88c84c2498360ba0d5f691" }, "downloads": -1, "filename": "pysensu-ng-0.5.0.tar.gz", "has_sig": false, "md5_digest": "24bd5de8e358775f6af1bcadabbf0828", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5511, "upload_time": "2016-03-14T22:58:37", "url": "https://files.pythonhosted.org/packages/2f/b1/239b1572f8d51fd47da631db1077b21652f437a8969f16ab5ee5c052cc28/pysensu-ng-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "35eee78279ed1889b987d16dec68a7e6", "sha256": "f6d85e99d1ab122832b09a0ff37aa3d6be6437094533af2ce374069b684f6adf" }, "downloads": -1, "filename": "pysensu-ng-0.6.0.tar.gz", "has_sig": false, "md5_digest": "35eee78279ed1889b987d16dec68a7e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5583, "upload_time": "2016-08-02T18:18:29", "url": "https://files.pythonhosted.org/packages/e9/a8/6e8fdc42101cc45653faa4b1b9f365d22dc8247ee1e73d237a59742ed205/pysensu-ng-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "2f6881162f4bcaf3b2b56b65f0d04161", "sha256": "f177f3c8435f80eb74efa142f4151141161c291833ee9334599d342c889ca1f1" }, "downloads": -1, "filename": "pysensu-ng-0.7.0.tar.gz", "has_sig": false, "md5_digest": "2f6881162f4bcaf3b2b56b65f0d04161", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5779, "upload_time": "2016-08-17T13:51:52", "url": "https://files.pythonhosted.org/packages/6d/e1/d8ae88c35c393d09d650996b157f77017533662b6d5444b49960a6a248cf/pysensu-ng-0.7.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "330ad4f2badbd9a9618e2961c9fade94", "sha256": "dff8cddafd0577efd8851ee6752795a967c02993385a0cfa13244856c63620c2" }, "downloads": -1, "filename": "pysensu-ng-0.8.0.tar.gz", "has_sig": false, "md5_digest": "330ad4f2badbd9a9618e2961c9fade94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6100, "upload_time": "2016-11-28T21:47:34", "url": "https://files.pythonhosted.org/packages/dd/04/c89a795b6556218b4769f9a0afceb71969647e18cb46b346b8328c1fcc80/pysensu-ng-0.8.0.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "172d470b5eb215a0613b14e74bfb0fe2", "sha256": "7cb3b00641cb740821d90f3789aab21367a16b3130c8448fe01a1f7684fc719f" }, "downloads": -1, "filename": "pysensu-ng-0.9.0.tar.gz", "has_sig": false, "md5_digest": "172d470b5eb215a0613b14e74bfb0fe2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6475, "upload_time": "2017-03-13T16:48:04", "url": "https://files.pythonhosted.org/packages/15/3d/519d1b86358ed0629802622830faf2f59753cbe4430eee1e397b1fa83bcf/pysensu-ng-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b96d2e6db8a8c7645fa42aac1cbe55fe", "sha256": "6f5bf8eedbcd76820ac66a3c386dafb3cb439e3c5a447f5d41f5d8ddd156bc83" }, "downloads": -1, "filename": "pysensu_ng-0.13.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b96d2e6db8a8c7645fa42aac1cbe55fe", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6122, "upload_time": "2019-07-23T15:14:01", "url": "https://files.pythonhosted.org/packages/11/fe/a13ed223744b0ecb6206b4e718307d90af828e65cc01a32259c78e4d6bdb/pysensu_ng-0.13.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1205cdbfdd28969a8348358a00b4ef25", "sha256": "c423a625a87e585cbfb3f177b3ab7e197b11553c9b344316434c091f7b906a90" }, "downloads": -1, "filename": "pysensu-ng-0.13.0.tar.gz", "has_sig": false, "md5_digest": "1205cdbfdd28969a8348358a00b4ef25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7245, "upload_time": "2019-07-23T15:14:03", "url": "https://files.pythonhosted.org/packages/f5/a1/5f0e9fbb3672ea62cdd05d138b4470d8d88bee57fbf9cde056e64e6ed13c/pysensu-ng-0.13.0.tar.gz" } ] }