Comparison
| Mode | Command | Best for |
|---|---|---|
| One-shot | dpf process --job '{...}' | Single operations, simple scripts |
| Stdin pipe | echo '{...}' | dpf | Shell pipelines, CI steps |
| Streaming | dpf --stream | Multiple operations with low latency |
| Batch | dpf batch --file jobs.json | Parallel job processing |
Modes
- One-shot
- Stdin pipe
- Streaming
- Batch
Spawn the binary once per job. The process exits after returning a single JSON result. Use this for infrequent or isolated operations.Example job — resize to multiple widths:Response: