--- id: opsgenie-sdk version: "2.1.5" license: unclear license_treatment: permissive maintenance: dormant --- # opsgenie-sdk — Python SDK for Opsgenie REST API License: permissive · Maintenance: dormant · Downloads: 6.3M/mo ## What it is and what it does opsgenie-sdk is an auto-generated Python client for Opsgenie's REST API (version 2.0.0), built by the OpenAPI Generator project. It wraps HTTP communication with urllib3, certifi, and tenacity to provide typed Python classes for alert creation, acknowledgment, escalation, and closure; heartbeat management; incident operations; and account queries. The library handles API authentication via key-based configuration and supports both standard and European Opsgenie endpoints. The package is designed for developers who need to integrate alert and incident management into Python applications—typically for automation, monitoring dashboards, or incident response workflows. It abstracts away REST endpoint details and error handling, letting you work with Opsgenie operations as Python method calls. The dormant maintenance status (last update August 2021) means the API surface is stable but may not reflect very recent Opsgenie service changes. Use it for: - Automate alert creation and management from Python monitoring or logging systems. - Build incident response workflows that programmatically escalate, assign, or close incidents. - Implement heartbeat monitoring to detect service outages and trigger alerts. - Query account information and alert history for reporting or audit purposes. - Integrate Opsgenie operations into Python-based DevOps or SRE tooling. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python client library for the Opsgenie REST API, enabling programmatic alert and incident management, heartbeat monitoring, and account operations. Yes, with conditions. The package is stable, permissive-licensed, and carries no known vulnerabilities. Install friction is low and dependencies are mature. However, the package has been dormant since August 2021 (1838 days); before adopting it, verify that your Opsgenie API version and feature set align with what the 2.0.0 SDK supports, and confirm that no breaking changes have occurred in Opsgenie's service since the last release. ## Install pip install opsgenie-sdk uv add opsgenie-sdk poetry add opsgenie-sdk ## Installing opsgenie-sdk Before you install: Low friction install with stable, widely-used dependencies. Package is dormant (last release 2021-08-02, 1838 days ago) but carries no known vulnerabilities and remains in production-stable status. License in practice: Permissive Apache license allows commercial and private use with minimal restrictions. Quickstart: pip install opsgenie-sdk import opsgenie_sdk from opsgenie_sdk.rest import ApiException configuration = opsgenie_sdk.Configuration() configuration.api_key['Authorization'] = 'YOUR_API_KEY' api_instance = opsgenie_sdk.AlertApi(opsgenie_sdk.ApiClient(configuration)) alerts = api_instance.list_alerts() Requires a valid Opsgenie API key; European accounts must set configuration.host to 'https://api.eu.opsgenie.com'. Verify before relying: - Whether the package remains compatible with Opsgenie API changes since its last release in August 2021. - Whether Python 2.7 support claim in description is still relevant or if only Python 3.4+ is actively maintained. ## Package facts - License: not declared (permissive) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 6.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags opsgenie api client, alert management python, incident management sdk, opsgenie python library, rest api client opsgenie, alert automation python, heartbeat monitoring sdk, api-client, incident-management, alerting [View on SkillFed](https://skillfed.io/packages/opsgenie-sdk) · [View on PyPI](https://pypi.org/project/opsgenie-sdk/)