Skip to main content

Python Replayer Adapter for Temporal

A Python adapter for debugging and replaying Temporal workflows with breakpoint support.

Features

  • Workflow Debugging: Comprehensive interceptors for debugging workflow execution
  • Breakpoint Support: Set breakpoints for standalone mode or integrate with IDE debugger
  • Dual Modes: Support for both standalone (JSON file) and IDE-integrated replay modes
  • Activity Debugging: Interceptors for activity execution debugging

Installation

# Install in development mode
pip install -e .

# Or install with development dependencies
pip install -e .[dev]

Quick Start

Standalone Mode

from replayer_adapter_python import *

# Configure replay
set_replay_mode(ReplayMode.STANDALONE)
set_breakpoints([5, 15, 30])

# Replay workflow
opts = ReplayOptions(history_file_path="workflow_history.json")
replay(opts, YourWorkflowClass)

IDE Integration Mode

from replayer_adapter_python import *

# Set IDE mode (connects via WFDBG_HISTORY_PORT env var)
set_replay_mode(ReplayMode.IDE)

# Replay with IDE debugger
opts = ReplayOptions()
replay(opts, YourWorkflowClass)

API Reference

Core Functions

  • set_replay_mode(mode): Set replay mode (ReplayMode.STANDALONE or ReplayMode.IDE)
  • set_breakpoints(event_ids): Set breakpoints for standalone mode
  • replay(opts, workflow_class): Main replay function

Classes

  • ReplayOptions: Configuration for replay settings
  • RunnerWorkerInterceptor: Main interceptor for workflow debugging

Environment Variables

  • WFDBG_HISTORY_PORT: Port for IDE debugger communication (default: 54578)

Dependencies

  • temporalio>=1.15.0
  • requests>=2.32.0

Metadata

Release files for temporal-replayer-adapter-python 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for temporal-replayer-adapter-python 1.0.3
File Size Uploaded
temporal_replayer_adapter_python-1.0.3.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for temporal-replayer-adapter-python 1.0.3
File Interpreter ABI Platform
temporal_replayer_adapter_python-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.9 kB

Release files / temporal_replayer_adapter_python-1.0.3.tar.gz

Download URL temporal_replayer_adapter_python-1.0.3.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9ee9f9890f5a060ce65d237c373ef152489bc356d835ee8ef4d35d4096497ea4
BLAKE2b-256 checksum
How to use checksums
85bde09afd19a25e5f11a8f23de1998b8f0e8a0974d20689a26ae2cd6c3db603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / temporal_replayer_adapter_python-1.0.3-py3-none-any.whl

Download URL temporal_replayer_adapter_python-1.0.3-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aab62746724f4b53dc983bd2a37846a06ad6eaec1043cf81f655b091e32bcf75
BLAKE2b-256 checksum
How to use checksums
d156fd6e264863e0b7c1b8ff1fec99d40b6c290bae797c9bce6fa01410af83f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.0

2 release files

0.0.2

2 release files

0.0.1

2 release 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