plog run wraps any Python command with automatic framework instrumentation. No code changes required.
Usage
Flags
| Flag | Default | Description |
|---|---|---|
--agent-id | auto | Agent identifier for audit events |
--db | ~/.provenlog/events.db | SQLite path (embedded mode) |
--server | — | Server URL (mutually exclusive with --db) |
How it works
- Creates a temporary
sitecustomize.pythat importsprovenlog.auto - Modifies
PYTHONPATHto include the temporary file - Executes your command as a child process
- Python runs
sitecustomizeon startup, patching all detected frameworks - stdin/stdout/stderr are forwarded transparently
- Signals (SIGINT, SIGTERM) are forwarded to the child
- The child’s exit code is preserved