Skip to main content

render-lab-tasks-pagerduty

Python port of all 9 registered tasks in the pinned TypeScript pack at 45f9c2d44bd28e01ae9813e0d2ff56ee6c533816. Python 3.12+.

From the repository, install this pack and its supporting core together:

pip install render-lab-tasks-pagerduty==0.1.0

Import task definitions from render_lab_tasks_pagerduty.tasks. Combine its app with other pack apps using Workflows.from_workflows(...) and call tasks with await ctx.run(task, input). Package roots do not register tasks. JSON fields retain the TS spelling; Python functions use snake_case.

Tasks

Registered name Python export (also exposes _impl)
pagerduty.acknowledge acknowledge
pagerduty.addNote add_note
pagerduty.assignIncident assign_incident
pagerduty.getIncident get_incident
pagerduty.listIncidents list_incidents
pagerduty.listOnCall list_on_call
pagerduty.resolve resolve
pagerduty.snooze snooze
pagerduty.trigger trigger

Dependencies and retries

Raw implementations accept context first and keyword-only deps. The .client module exports typed Port, Deps, and Client classes (also vendor-named aliases). Inject a fake port, or pass a caller-owned httpx.AsyncClient to Client for custom transport/configuration. Default dependencies close their HTTP clients after the operation. Credentials resolve at first use. HTTP and SDK retries are disabled; retry.py owns durable retry settings. DTO types live in .types.

Environment

Variable Contract
PAGERDUTY_ROUTING_KEY Required only for trigger, acknowledge, and resolve (Events API v2).
PAGERDUTY_API_TOKEN Required only for REST operations.
PAGERDUTY_FROM_EMAIL Required only for assignIncident and snooze; sent in the From header.

Verification and limitations

Events and REST credentials are independent and read lazily. The TS addNote payload does not add a From header; account-specific API requirements remain live-unverified. A dedupKey can deduplicate Events API alerts; it is not an exactly-once guarantee for other writes.

Shared JSON fixtures compare the Python task output with the actual pinned TS implementation. REST fixtures also compare HTTP requests; HubSpot and Linear fixtures compare source SDK arguments with HTTP payloads/GraphQL variables. No live vendor calls were made for this batch. Registered-task parity does not claim live readiness or all supporting TS exports. See the root verification tracker and docs/porting-batches.md. Licensed under MIT.

Webhook adapter

render_lab_tasks_pagerduty.webhooks.pagerduty_adapter(on_event, ...) returns a registration-free adapter for render_lab_triggers. The callback receives the verified event and returns {"task": "namespace.task", "args": [event]} or None. The signing credential PAGERDUTY_WEBHOOK_SECRET is read inside verification unless provided explicitly. Importing this module does not register tasks. Signature checks use the raw body; live delivery remains in the testing backlog.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

render_lab_tasks_pagerduty-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

render_lab_tasks_pagerduty-0.1.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file render_lab_tasks_pagerduty-0.1.0.tar.gz.

File metadata

File hashes

Hashes for render_lab_tasks_pagerduty-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4eda90ce49f7666d931121da0c65af7af9441cbd9594275aedefd3536e8fd6ed
MD5 808d9dc08ede366e1bdfd08807b0a364
BLAKE2b-256 520213cd636c5c99948a7ed512185eb7333021b70b2093bf0b9815108f773a9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_pagerduty-0.1.0.tar.gz:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file render_lab_tasks_pagerduty-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for render_lab_tasks_pagerduty-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f50b8c542b34d3a36763eb80db4f341dd8c18bc8e81d6e8130ca610d3c8a712
MD5 e19d84da18c6972f048d60024278d86b
BLAKE2b-256 ab6287f9dc058bcc8f4faf35ed6d1d90327efabef1454c9b51996acc87252651

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_pagerduty-0.1.0-py3-none-any.whl:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page