skillfed

opsgenie-sdk

Python SDK for Opsgenie REST API

opsgenie-sdk v2.1.5 6.3M downloads/30d#1,931 on PyPI50
Permissive license DORMANT released

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-sdk

uv

uv add opsgenie-sdk

poetry

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 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS Independent

Tags

opsgenie api clientalert management pythonincident management sdkopsgenie python libraryrest api client opsgeniealert automation pythonheartbeat monitoring sdk
api-clientincident-managementalerting

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

apache-airflow-providers-opsgenie

Integrates Apache Airflow with Opsgenie to send…

permissive · top 5,000 on PyPI

datadog-api-client

Python client library for the Datadog API,…

permissive · top 1,000 on PyPI

pypd

A Python client for PagerDuty's v2 API that…

permissive · top 15,000 on PyPI

pygerduty

Pygerduty is a Python client library for…

permissive · top 15,000 on PyPI

orq-ai-sdk

A type-safe Python SDK for the orq.ai API,…

unclear · top 15,000 on PyPI

whylabs-client

A Python client library for the WhyLabs API…

permissive · top 15,000 on PyPI

mixpeek

Mixpeek is an auto-generated OpenAPI client…

permissive · top 15,000 on PyPI

qase-api-client

Python client library for the Qase TestOps API…

unclear · top 15,000 on PyPI

azure-mgmt-securityinsight

Provides a Python client library for managing…

permissive · top 15,000 on PyPI

authentik-client

A Python client library for the authentik…

permissive · top 15,000 on PyPI