pdpyras
PagerDuty Python REST API Sessions.
What it is and what it does
pdpyras is a Python client library that simplifies interaction with PagerDuty's REST API by building on top of the Requests library. It handles authentication and provides a Session-based interface for making API calls, reducing boilerplate code needed to work with PagerDuty's incident management, escalation policies, and other resources.
The package is built on two core dependencies—requests and urllib3—and targets Python 3.6 and later. It sits in the top 5000 PyPI packages by download volume, indicating real-world adoption in operations and incident management workflows. The aging maintenance status (437 days since last release) suggests the package may be in stable maintenance rather than active development, so it's worth checking whether your use case aligns with the current API coverage.
Use it for:
- Automate incident creation and management workflows from Python applications or scripts
- Query PagerDuty data (incidents, users, escalation policies) programmatically for reporting or integration
- Build custom dashboards or monitoring tools that pull live PagerDuty state into your infrastructure
- Integrate PagerDuty with third-party systems or internal tools that need to trigger or acknowledge incidents
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A REST API client library for PagerDuty that wraps the Requests Session class to simplify authentication and API interactions with PagerDuty's services.
Yes, if you need to interact with PagerDuty's API from Python. The package has low install friction, permissive licensing, no known vulnerabilities, and solid download volume indicating real-world use. The aging maintenance status is a minor concern—verify that the current API version meets your needs and that you're comfortable with a package that may not receive frequent updates.
Install
pdpyras on PyPI
pip
pip install pdpyrasuv
uv add pdpyraspoetry
poetry add pdpyrasInstalling pdpyras
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was 437 days ago—but the package remains functional and supports current Python versions (3.6+).
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install pdpyras
from pdpyras import APISession
session = APISession(token='your-api-token')
incidents = session.list_all('incidents')
Requires a valid PagerDuty API token to authenticate; PagerDuty account access is necessary.
Verify before relying
- Whether the package is actively maintained or in stable maintenance mode despite the aging status
- API coverage completeness relative to current PagerDuty API endpoints
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — requests, urllib3 |
| Maintenance | aging — 437 days since the last release |
| First released | |
| Downloads | 3,541,799/month — #2,582 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pdpyras-5.4.1-py2.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
pagerdutyLightweight Python client library for…
unclear · top 5,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
pulumi-pagerdutyA Pulumi resource provider that lets you…
permissive · top 15,000 on PyPI
pagerduty-mcpAn MCP (Model Context Protocol) server that…
unclear · top 15,000 on PyPI
apache-airflow-providers-pagerdutyIntegrates PagerDuty incident management with…
permissive · top 5,000 on PyPI
datadog-api-clientPython client library for the Datadog API,…
permissive · top 1,000 on PyPI
dagster-pagerdutyIntegrates PagerDuty incident management with…
permissive · top 15,000 on PyPI
jiraA Python library that wraps the Jira REST API,…
permissive · top 1,000 on PyPI
opsgenie-sdkPython client library for the Opsgenie REST…
permissive · top 5,000 on PyPI