{ "info": { "author": "Panopta", "author_email": "support@panopta.com", "bugtrack_url": null, "classifiers": [], "description": "==========================\r\nPanopta API Python Package\r\n==========================\r\n\r\nThe Panopta REST API provides full access to all configuration, status and outage management\r\nfunctionality of the Panopta monitoring service, including the ability to create and modify\r\nmonitoring checks that are being performed, manage notification configuration, respond\r\nto active outages and to pull availability statistics for monitored servers.\r\n\r\nInstallation\r\n============\r\n\r\nTo install, just do a pip install of the package::\r\n\r\n pip install panopta_rest_api\r\n\r\nThe library depends on the httplib2 module, which will also be installed if it's not already\r\navailable.\r\n\r\nAPI Documentation\r\n=================\r\nFull documentation for the API is available at https://api2.panopta.com/v2/api-docs/. By \r\nentering your API token you can view full details on all of the API methods and issue API\r\nrequests from the documentation page.\r\n\r\nUsage \r\n=====\r\n\r\nThe library provides a wrapper around the Panopta REST API, making it easy to issue \r\nGET, POST, PUT and DELETE operations to the API. A sample use of the library is below.\r\n\r\n::\r\n\r\n import api_client\r\n import json\r\n \r\n api_url = 'http://api2.panopta.com'\r\n api_token = 'testing'\r\n version = '2'\r\n \r\n if __name__ == '__main__':\r\n #-- initialize the client\r\n client = api_client.api_client(api_url, \r\n api_token, \r\n version=version, \r\n log_level=api_client.LOG_DEBUG, \r\n log_path='./')\r\n \r\n #-- get a server\r\n query_params = { 'fqdn': 'panopta.com', 'limit': 10, 'offset': 0 }\r\n results = client.get('/server', query_params=query_params)\r\n print json.dumps(results, indent=2) \r\n \r\n #-- create a contact\r\n data = { 'name': 'john', 'timezone': '%s/v%s/timezone/America/Chicago' % (api_url, version) } \r\n results = client.post('/contact', request_data=data)\r\n print json.dumps(results, indent=2)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.panopta.com", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "panopta_rest_api", "package_url": "https://pypi.org/project/panopta_rest_api/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/panopta_rest_api/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.panopta.com" }, "release_url": "https://pypi.org/project/panopta_rest_api/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Panopta REST API Client", "version": "1.0.1" }, "last_serial": 1684796, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "bb7259ed1ef0b535a05d078ca64998b7", "sha256": "1ef38e39c4894044ae20050d5d7d4222ed9a158697dd96cf3970372158437671" }, "downloads": -1, "filename": "panopta_rest_api-1.0.1.tar.gz", "has_sig": false, "md5_digest": "bb7259ed1ef0b535a05d078ca64998b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3096, "upload_time": "2013-09-04T15:36:54", "url": "https://files.pythonhosted.org/packages/f9/95/97e0b796ba3b4ea758764f2c68ed0636fb2dc24e08f48c2c1e2fc4f248c8/panopta_rest_api-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bb7259ed1ef0b535a05d078ca64998b7", "sha256": "1ef38e39c4894044ae20050d5d7d4222ed9a158697dd96cf3970372158437671" }, "downloads": -1, "filename": "panopta_rest_api-1.0.1.tar.gz", "has_sig": false, "md5_digest": "bb7259ed1ef0b535a05d078ca64998b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3096, "upload_time": "2013-09-04T15:36:54", "url": "https://files.pythonhosted.org/packages/f9/95/97e0b796ba3b4ea758764f2c68ed0636fb2dc24e08f48c2c1e2fc4f248c8/panopta_rest_api-1.0.1.tar.gz" } ] }