Python Replayer Adapter for Temporal workflows with debugging capabilities
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file temporal_replayer_adapter_python-0.0.1.tar.gz.
File metadata
- Download URL: temporal_replayer_adapter_python-0.0.1.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97b38d7b78acfe46aa1b59a0a18ae882cd1a49e58a08417ded52b05b93436185
|
|
| MD5 |
07d1c8bdaaf43f2e1b775fcf98f97c5a
|
|
| BLAKE2b-256 |
9a2dccc310663d800bb1150655e432876e2edc88833c9d081b6c7be4fc501f54
|
File details
Details for the file temporal_replayer_adapter_python-0.0.1-py3-none-any.whl.
File metadata
- Download URL: temporal_replayer_adapter_python-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5293c75d810159801c957769390dae68f77fd741e4f43ff1adadf7463afc7ab
|
|
| MD5 |
f5a01c7850fc73edc6c23c48ea760469
|
|
| BLAKE2b-256 |
8fbd44e867abfbe742e1acf028d5337618abd1468ca40add6709475ecd1fd729
|