opsgenie-sdk
Python SDK for Opsgenie REST API
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 on this page — 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
opsgenie-sdk on PyPI
pip
pip install opsgenie-sdkuv
uv add opsgenie-sdkpoetry
poetry add opsgenie-sdkInstalling 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 | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — urllib3, six, certifi, python-dateutil, setuptools, tenacity |
| Maintenance | dormant — 1,838 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,323,013/month — #1,931 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opsgenie_sdk-2.1.5-py3-none-any.whl
Keywords: OpenAPI, OpenAPI-Generator, Python SDK for Opsgenie REST API, OpsGenie, Opsgenie
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
apache-airflow-providers-opsgenieIntegrates Apache Airflow with Opsgenie to send…
permissive · top 5,000 on PyPI
datadog-api-clientPython client library for the Datadog API,…
permissive · top 1,000 on PyPI
pypdA Python client for PagerDuty's v2 API that…
permissive · top 15,000 on PyPI
pygerdutyPygerduty is a Python client library for…
permissive · top 15,000 on PyPI
orq-ai-sdkA type-safe Python SDK for the orq.ai API,…
unclear · top 15,000 on PyPI
whylabs-clientA Python client library for the WhyLabs API…
permissive · top 15,000 on PyPI
mixpeekMixpeek is an auto-generated OpenAPI client…
permissive · top 15,000 on PyPI
qase-api-clientPython client library for the Qase TestOps API…
unclear · top 15,000 on PyPI
azure-mgmt-securityinsightProvides a Python client library for managing…
permissive · top 15,000 on PyPI
authentik-clientA Python client library for the authentik…
permissive · top 15,000 on PyPI