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.STANDALONEorReplayMode.IDE)set_breakpoints(event_ids): Set breakpoints for standalone modereplay(opts, workflow_class): Main replay function
Classes
ReplayOptions: Configuration for replay settingsRunnerWorkerInterceptor: Main interceptor for workflow debugging
Environment Variables
WFDBG_HISTORY_PORT: Port for IDE debugger communication (default: 54578)
Dependencies
temporalio>=1.15.0requests>=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)
| File | Size | Uploaded | |
|---|---|---|---|
| temporal_replayer_adapter_python-1.0.3.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|