Skip to main content
plog run wraps any Python command with automatic framework instrumentation. No code changes required.

Usage

Flags

How it works

  1. Creates a temporary sitecustomize.py that imports provenlog.auto
  2. Modifies PYTHONPATH to include the temporary file
  3. Executes your command as a child process
  4. Python runs sitecustomize on startup, patching all detected frameworks
  5. stdin/stdout/stderr are forwarded transparently
  6. Signals (SIGINT, SIGTERM) are forwarded to the child
  7. The child’s exit code is preserved

Examples

See Auto-Instrumentation for details on which frameworks are detected and how patching works.