{ "info": { "author": "OpsGenie", "author_email": "support@opsgenie.com", "bugtrack_url": null, "classifiers": [], "description": "OpsGenie Python SDK - [BETA]\n============================\n\nAim and Scope\n-------------\n\nOpsGenie Python SDK aims to access OpsGenie Web API through HTTP calls from a client application in Python language.\n\nOpsGenie Python SDK covers:\n\n- Alert API\n\nFuture releases are subject to be delivered for packing more APIs soon.\n\nFor more information about OpsGenie Python SDK, please refer to\n`OpsGenie Python\nAPI `__\ndocument.\n\nPre-requisites\n--------------\n\n- The API is specifically built for Python 2.7 but can also be used with other Python versions.\n- Before you begin, you need to sign up `OpsGenie `__ if you don't have a valid\n account yet. Create an API Integration and get your API key.\n\nInstallation\n------------\n\nTo download all packages in the repo with their dependencies, simply execute\n\n``pip install opsgenie-sdk``\n\nGetting Started\n---------------\n\nOne can start using OpsGenie Python SDK by initializing client and making a request.\nExample shown below demonstrates how to initialize our Swagger client and make a create alert request.\n\n::\n\n from opsgenie.swagger_client import AlertApi\n from opsgenie.swagger_client import configuration\n from opsgenie.swagger_client.models import CreateAlertRequest\n from opsgenie.swagger_client.rest import ApiException\n\n configuration.api_key['Authorization'] = 'YOUR_API_KEY'\n configuration.api_key_prefix['Authorization'] = 'GenieKey'\n\n try:\n response = AlertApi().create_alert(body=CreateAlertRequest(message='Hello from OpsGenie Python SDK'))\n\n print('request id: {}'.format(response.request_id))\n print('took: {}'.format(response.took))\n print('result: {}'.format(response.result))\n except ApiException as err:\n print(\"Exception when calling AlertApi->create_alert: %s\\n\" % err)\n\nThere are useful sample code snippets under ``samples`` directory for packages. At the moment, we are continuing to support\nour old OpsGenie client for creating alerts to new REST API:\n\n::\n\n from opsgenie import OpsGenie\n from opsgenie.swagger_client import CreateAlertRequest\n from opsgenie.config import Configuration\n from opsgenie.swagger_client.rest import ApiException\n\n config = Configuration(apikey=\"YOUR_API_KEY\")\n\n client = OpsGenie(config)\n\n try:\n response = client.alert_v2.create_alert(CreateAlertRequest(message=\"Hello from OpsGenie Python SDK\"))\n print 'message: {}'.format(response.message)\n print 'alert id: {}'.format(response.alert_id)\n print 'status: {}'.format(response.status)\n print 'code: {}'.format(response.code)\n except ApiException as err:\n print(\"Exception when calling alert_v2->create_alert: %s\\n\" % err)\n\n\nThe Web API\n-----------\n\nPlease follow the links below for more information and details about the\nWeb API.\n\n- `Alert API `__\n- `Alert API (Deprecated) `__\n\nBug Reporting and Feature Requests\n----------------------------------\n\nIf you like to report a bug, or a feature request; please open an issue.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/opsgenie/opsgenie-python-sdk", "keywords": "OpsGenie", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "opsgenie-sdk-criteo", "package_url": "https://pypi.org/project/opsgenie-sdk-criteo/", "platform": "", "project_url": "https://pypi.org/project/opsgenie-sdk-criteo/", "project_urls": { "Homepage": "https://github.com/opsgenie/opsgenie-python-sdk" }, "release_url": "https://pypi.org/project/opsgenie-sdk-criteo/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "Python SDK for OpsGenie Web/REST API (Criteo Forks)", "version": "0.3.1" }, "last_serial": 4479051, "releases": { "0.3.1": [ { "comment_text": "", "digests": { "md5": "485570108d9685dac7ba978ff5398738", "sha256": "49cc868a4baa56c58e71572ee8440037339604f85644b242465d338d74caff58" }, "downloads": -1, "filename": "opsgenie-sdk-criteo-0.3.1.tar.gz", "has_sig": false, "md5_digest": "485570108d9685dac7ba978ff5398738", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54023, "upload_time": "2017-10-02T12:19:19", "url": "https://files.pythonhosted.org/packages/34/7e/fab2853206d5a0c083020d93abafb2aa1a4917d62ffa484b2af577c042d7/opsgenie-sdk-criteo-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "485570108d9685dac7ba978ff5398738", "sha256": "49cc868a4baa56c58e71572ee8440037339604f85644b242465d338d74caff58" }, "downloads": -1, "filename": "opsgenie-sdk-criteo-0.3.1.tar.gz", "has_sig": false, "md5_digest": "485570108d9685dac7ba978ff5398738", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54023, "upload_time": "2017-10-02T12:19:19", "url": "https://files.pythonhosted.org/packages/34/7e/fab2853206d5a0c083020d93abafb2aa1a4917d62ffa484b2af577c042d7/opsgenie-sdk-criteo-0.3.1.tar.gz" } ] }