Skip to content

Recipes โ€‹

Each recipe solves one common problem, first with the standard library, then with proclet.

ProblemRecipe
Get a command's output into logging, line by line, while it runsStream subprocess output to a logger
Give a command a deadline and stop it gracefullyRun a command with a timeout and stop it cleanly
Chain tools like a shell pipe, safely, with binary dataPipe binary data between processes without a shell
Drop root privileges for one toolRun a subprocess as another user
Run a command against many targets at onceRun many commands concurrently with asyncio
Turn kubectl, git or docker into a Python classWrap a CLI in a typed Python API

Released under the Apache-2.0 license.