Class PackageManagerExecutor

java.lang.Object
org.openrewrite.python.internal.PackageManagerExecutor

public final class PackageManagerExecutor extends Object
Locates and runs a Python package manager CLI. Pre-configured instances are provided for uv (UV) and pipenv (PIPENV); each caches the resolved executable path on first find().

Callers that just need the executable path can call find() and skip lock regeneration when it returns null. Callers that already have the path can run subcommands via run(Path, String, Map, String...).