pagerduty
Clients for PagerDuty's Public APIs
What it is and what it does
This is a Python client library for interacting with PagerDuty's public REST APIs. It wraps httpx2 to provide a higher-level abstraction that handles authentication, pagination, filtering, and automatic connection pooling, eliminating boilerplate code when making requests to PagerDuty. The library is designed to balance ease of use with direct access to the underlying HTTP client, so you can still inspect response headers or set custom request headers when needed.
The package includes both a programmatic API for use in Python applications and a command-line interface for triggering incidents and other Events API operations. It was built to replace code duplication in PagerDuty's own internal tooling and is the successor to the pdpyras library. It handles rate limiting with configurable cooldown and reattempt logic, and supports Python 3.10 through 3.13.
Use it for:
- Trigger incidents or send events to PagerDuty from Python applications or monitoring systems
- Query incidents, users, schedules, or other PagerDuty objects with built-in pagination and filtering
- Build automation scripts that interact with PagerDuty's REST API without managing HTTP details
- Integrate PagerDuty alerting into custom Python-based incident response workflows
- Use the CLI tool to trigger incidents directly from shell scripts or cron jobs
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Lightweight Python client library for PagerDuty's REST API v2 and Events API v2, with built-in support for authentication, pagination, rate limiting, and connection pooling.
Yes. The package is actively maintained, has low install friction, no known vulnerabilities, and is widely used (top 5000 on PyPI). It directly solves the problem of interacting with PagerDuty's APIs from Python. The only caveat is to verify the license treatment before use, since metadata indicates it is unclear despite the description stating MIT.
Install
pagerduty on PyPI
pip
pip install pagerdutyuv
uv add pagerdutypoetry
poetry add pagerdutyInstalling pagerduty
Before you install
Low friction install with a single runtime dependency (httpx2). Actively maintained with a release within the last 30 days and support for modern Python versions (3.10+).
License in practice
License treatment is unclear in the metadata, though the description excerpt states the code is made available under the MIT License. Verify the actual license file in the repository before relying on this for compliance.
Quickstart
pip install pagerduty
from pagerduty import EventsAPIV2Client
client = EventsAPIV2Client(routing_key='your-routing-key')
client.trigger(description='Network latency is high')
Requires Python 3.10 or later; a valid PagerDuty routing key or API token is needed for authentication.
Verify before relying
- Whether license_spdx and license_raw being null reflects a packaging issue or genuine metadata gap in the repository
- Full scope of API endpoints and resources covered by the client abstraction layer
- Whether the CLI tool (pagerduty trigger, etc.) is feature-complete or limited to Events API v2
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — httpx2 |
| Maintenance | actively maintained — 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,664,670/month — #2,059 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pagerduty-7.0.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
pdpyrasA REST API client library for PagerDuty that…
permissive · top 5,000 on PyPI
pygerdutyPygerduty is a Python client library for…
permissive · top 15,000 on PyPI
pypdA Python client for PagerDuty's v2 API that…
permissive · top 15,000 on PyPI
vultrA Python client library for the Vultr.com API,…
permissive · top 15,000 on PyPI
devo-sdkSend events and files to Devo, query data via…
permissive · top 15,000 on PyPI
volue-insight-timeseriesA Python client library for querying and…
unclear · top 15,000 on PyPI
pagerduty-mcpAn MCP (Model Context Protocol) server that…
unclear · top 15,000 on PyPI
apiclientA lightweight framework for building HTTP API…
permissive · top 15,000 on PyPI
sailthru-clientA Python client library for the Sailthru REST…
permissive · top 15,000 on PyPI
hammockHammock wraps the requests library to let you…
unclear · top 15,000 on PyPI