skillfed

pdpyras

PagerDuty Python REST API Sessions.

pdpyras v5.4.1 3.5M downloads/30d#2,582 on PyPI
Permissive license MIT AGING released

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 pdpyras

uv

uv add pdpyras

poetry

poetry add pdpyras

Installing 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

pagerduty api clientpagerduty rest api pythonpagerduty python sdkincident management api clientpagerduty session wrapper
incident-managementapi-client

More WWW/HTTP packages