pygerduty
Python Client Library for PagerDuty's REST API
What it is and what it does
Pygerduty is a thin wrapper around PagerDuty's REST and Events APIs, allowing Python developers to programmatically manage schedules, users, incidents, and overrides. The library provides standard resource methods (list, show, create, update, delete) that map to PagerDuty's API endpoints. It was originally built for API v1 and has been partially updated for v2; the codebase is split into separate modules for v2 REST logic, Events API logic, and shared utilities.
The package is no longer actively maintained—the last release was in 2020 and the repository has seen no commits since 2023. While it remains functional for basic use cases, it is not updated to follow PagerDuty's current API evolution, and backwards compatibility is not guaranteed between versions. Developers should verify that the v2 implementation covers their specific use case before relying on it in production.
Use it for:
- Automate on-call schedule management and retrieve user schedules from PagerDuty
- Programmatically create and manage schedule overrides for temporary coverage
- Query and acknowledge triggered incidents in bulk or by user
- Build internal tools that integrate PagerDuty incident data with other systems
- Send events to PagerDuty via the Events API for alerting workflows
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pygerduty is a Python client library for PagerDuty's REST API and Events API, providing thin wrapper methods to list, show, create, update, and delete PagerDuty resources.
No—not recommended for new projects. The package is abandoned (last release 2020-04-22, no commits since 2023-05-09) and only partially supports PagerDuty's v2 API. While it has low install friction and a permissive MIT license, the lack of maintenance and incomplete API coverage make it a poor choice for production use. Consider using PagerDuty's official client libraries or a more actively maintained alternative.
Install
pygerduty on PyPI
pip
pip install pygerdutyuv
uv add pygerdutypoetry
poetry add pygerdutyInstalling pygerduty
Before you install
Low install friction with a single runtime dependency (six). However, the package is abandoned—last release was 2020-04-22 and no commits since 2023-05-09. It was originally written for v1 API and is only partially updated for v2, with backwards compatibility not guaranteed.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
Quickstart
pip install pygerduty
import pygerduty.v2
pager = pygerduty.v2.PagerDuty("SOMEAPIKEY123456")
for schedule in pager.schedules.list():
print(schedule.id, schedule.name)
Requires a valid PagerDuty API key. The library supports Python 2.7 and Python 3.6+, though it is no longer actively maintained.
Verify before relying
- Whether v2 API support is complete enough for current PagerDuty API versions
- Compatibility with modern Python versions beyond 3.6
- Whether the Events API module is fully functional
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — six |
| Maintenance | abandoned — 2,305 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 232,186/month — #9,073 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pygerduty-0.38.3-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
pagerdutyLightweight Python client library for…
unclear · top 5,000 on PyPI
pdpyrasA REST API client library for PagerDuty that…
permissive · top 5,000 on PyPI
pypdA Python client for PagerDuty's v2 API that…
permissive · top 15,000 on PyPI
pulumi-pagerdutyA Pulumi resource provider that lets you…
permissive · top 15,000 on PyPI
apache-airflow-providers-pagerdutyIntegrates PagerDuty incident management with…
permissive · top 5,000 on PyPI
opsgenie-sdkPython client library for the Opsgenie REST…
permissive · top 5,000 on PyPI
pagerduty-mcpAn MCP (Model Context Protocol) server that…
unclear · top 15,000 on PyPI
dagster-pagerdutyIntegrates PagerDuty incident management with…
permissive · top 15,000 on PyPI
datadog-api-clientPython client library for the Datadog API,…
permissive · top 1,000 on PyPI
py-dactylA Python wrapper for the Pterodactyl Panel API…
permissive · top 15,000 on PyPI