pare-python
v0.24.2Pare Python ג€” Structured Python tool output (ruff, mypy, pip, uv, black, pytest) as typed JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pip-install pip Install
Runs pip install and returns a structured summary of installed packages. WARNING: may execute untrusted code.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
constraint | string | Path to constraints file for version pinning (-c FILE) |
dryRun | boolean | Preview what would be installed without actually installing (--dry-run) |
editable | string | Path to local package for editable install (-e PATH) |
extraIndexUrl | array | Extra package index URLs for additional registries |
forceReinstall | boolean | Force reinstall of all packages even if already installed (--force-reinstall) |
indexUrl | string | Base URL of the Python Package Index (-i URL) |
noDeps | boolean | Do not install package dependencies (--no-deps) |
packages | array | Packages to install (empty for requirements.txt) |
path | string | Working directory |
pre | boolean | Include pre-release and development versions (--pre) |
report | string | Write JSON install report to file (--report FILE) |
requirements | string | Path to requirements file |
target | string | Install packages into target directory (-t DIR) |
upgrade | boolean | Upgrade already-installed packages to the newest version (--upgrade / -U) |
pip-list pip List
Runs pip list and returns a structured list of installed packages.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
editable | boolean | Only list editable packages (-e, --editable) |
exclude | array | Package names to exclude from output |
excludeEditable | boolean | Exclude editable packages from the list (--exclude-editable) |
local | boolean | Only list packages in the local virtualenv (-l, --local) |
notRequired | boolean | List packages that are not dependencies of other packages (--not-required) |
outdated | boolean | Only list outdated packages with their latest available versions (--outdated) |
path | string | Working directory |
user | boolean | Only list packages installed in user-site (--user) |
pip-show pip Show
Runs pip show and returns structured package metadata (name, version, summary, dependencies). Supports multiple packages in a single call.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
files | boolean | List installed files for the package (-f, --files) |
package | string | Single package name to show (for backward compatibility) |
packages | array | Package names to show (supports multiple packages) |
path | string | Working directory |
mypy mypy Type Check
Runs mypy and returns structured type-check diagnostics (file, line, severity, message, code).
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
configFile | string | Path to mypy config file (--config-file) |
disallowAnyGenerics | boolean | Disallow usage of generic types without explicit parameters (--disallow-any-generics) |
disallowIncompleteDefs | boolean | Disallow partially typed function definitions (--disallow-incomplete-defs) |
disallowUntypedCalls | boolean | Disallow calling untyped functions from typed contexts (--disallow-untyped-calls) |
disallowUntypedDefs | boolean | Disallow defining functions without type annotations (--disallow-untyped-defs) |
exclude | string | Regular expression to exclude files/directories |
followImports | string | How to handle imports (normal/silent/skip/error) |
ignoreMissingImports | boolean | Suppress errors about missing imports for projects with incomplete stubs (--ignore-missing-imports) |
installTypes | boolean | Auto-install missing type stubs (--install-types --non-interactive) |
module | string | Specific module to type-check (-m MODULE) |
noIncremental | boolean | Disable incremental mode (--no-incremental) |
package | string | Specific package to type-check (-p PACKAGE) |
path | string | Project root path |
pythonPath | string | Python interpreter path to use (overrides executable/PATH fallback) |
pythonVersion | string | Python version to target (e.g. '3.11') |
strict | boolean | Enable strict mode for thorough type checking (--strict) |
targets | array | Files or directories to check (default: ['.']) |
warnRedundantCasts | boolean | Warn about redundant type casts (--warn-redundant-casts) |
warnReturnAny | boolean | Warn about returning values of type Any (--warn-return-any) |
warnUnreachable | boolean | Warn about statically unreachable code (--warn-unreachable) |
warnUnusedIgnores | boolean | Warn about unnecessary # type: ignore comments (--warn-unused-ignores) |
ruff-check ruff Lint
Runs ruff check and returns structured lint diagnostics (file, line, code, message).
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
config | string | Path to custom ruff config file |
diff | boolean | Show diff of fixes without applying (--diff) |
exclude | array | File patterns to exclude from checking |
fix | boolean | Auto-fix problems |
ignore | array | Rule codes or prefixes to suppress (e.g. ['E501']) |
lineLength | integer | Override the configured line length (--line-length) |
noCache | boolean | Disable cache (--no-cache) |
path | string | Project root path |
preview | boolean | Enable preview rules (--preview) |
pythonPath | string | Python interpreter path to use (overrides executable/PATH fallback) |
select | array | Rule codes or prefixes to enable (e.g. ['E', 'F401']) |
statistics | boolean | Show rule violation statistics (--statistics) |
targetVersion | string | Python version target override (e.g. 'py38') |
targets | array | Files or directories to check (default: ['.']) |
unsafeFixes | boolean | Apply unsafe fixes in addition to safe ones (--unsafe-fixes) |
ruff-format ruff Format
Runs ruff format and returns structured results (files changed, file list).
| Parameter | Type | Description |
|---|---|---|
check | boolean | Check mode (report without modifying files) |
compact | boolean | Prefer compact output |
config | string | Path to custom ruff config file |
diff | boolean | Show diff of formatting changes without applying (--diff) |
exclude | array | File patterns to exclude from formatting |
indentWidth | integer | Override the configured indent width (--indent-width) |
isolated | boolean | Ignore all configuration files (--isolated) |
lineLength | integer | Override the configured line length (--line-length) |
noCache | boolean | Disable cache (--no-cache) |
path | string | Project root path |
patterns | array | Files or directories to format (default: ["."]) |
preview | boolean | Enable preview formatting rules (--preview) |
pythonPath | string | Python interpreter path to use (overrides executable/PATH fallback) |
quoteStyle | string | Quote style override for formatting |
range | string | Line range for formatting (e.g. '10-20') |
targetVersion | string | Python version target override (e.g. 'py38') |
pip-audit pip Audit
Runs pip-audit and returns a structured vulnerability report.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
dryRun | boolean | Preview fix changes without applying (--dry-run) |
fix | boolean | Auto-remediate vulnerabilities (--fix) |
ignoreVuln | array | Vulnerability IDs to suppress (e.g. PYSEC-2023-001) |
indexUrl | string | Custom package index URL for corporate/private registry support |
local | boolean | Only audit packages in the local virtualenv (-l, --local) |
noDeps | boolean | Skip auditing dependencies (--no-deps) |
path | string | Project root path |
requirements | string | Path to requirements file |
skipEditable | boolean | Skip auditing editable packages (--skip-editable) |
strict | boolean | Fail on skipped dependencies (-S, --strict) |
vulnerabilityService | string | Vulnerability service to query (default: pypi) |
pytest pytest
Runs pytest and returns structured test results (passed, failed, errors, skipped, failures).
| Parameter | Type | Description |
|---|---|---|
collectOnly | boolean | Only collect tests, do not run them (--collect-only) |
compact | boolean | Prefer compact output |
configFile | string | Path to pytest config file (-c FILE) |
coverage | string | Source directory for coverage measurement (--cov=SOURCE) |
env | object | Additional environment variables for the pytest process, merged over the parent environment (e.g. {"PYTHONPATH": "src"} for src-layout projects) |
exitFirst | boolean | Stop on first failure (-x) |
extraArgs | array | Additional pytest CLI arguments passed through verbatim (e.g. ["-p", "no:logfire"] to disable a broken plugin). Each element is validated for control characters. Verbosity is set by the tool: -v/-vv/-… |
keyword | string | Keyword expression for test filtering (-k EXPR) |
lastFailed | boolean | Re-run only tests that failed last time (--lf) |
markers | string | Pytest marker expression (e.g. "not slow") |
maxFail | integer | Stop after N failures (--maxfail=N) |
noCapture | boolean | Disable stdout/stderr capturing, useful for print-debugging (-s) |
parallel | integer | Number of parallel workers for pytest-xdist (-n NUM, 0=auto) |
path | string | Project root path |
pythonPath | string | Python interpreter path to use (overrides venv/PATH detection) |
targets | array | Test files or directories to run (default: auto-discover) |
tracebackStyle | string | Traceback output style (default: short) |
verbose | boolean | Enable verbose output (verbosity 1). For more, add "-vv" to extraArgs, e.g. to see a full assertion diff |
uv-install uv Install
Runs uv pip install and returns a structured summary of installed packages. WARNING: may execute untrusted code.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
constraint | string | Path to constraints file for version pinning (-c FILE) |
dryRun | boolean | Preview what would be installed without actually installing (--dry-run) |
editable | string | Path to local package for editable install (-e PATH) |
extras | array | Package extras to install (--extra NAME) |
indexUrl | string | Base URL of the Python Package Index (-i URL) |
noDeps | boolean | Do not install package dependencies (--no-deps) |
packages | array | Packages to install |
path | string | Working directory |
python | string | Python interpreter version to use (-p VERSION) |
reinstall | boolean | Force reinstall of all packages even if already installed (--reinstall) |
requirements | string | Path to requirements file |
upgrade | boolean | Upgrade already-installed packages to the newest version (--upgrade) |
verifyHashes | boolean | Verify package hashes for supply-chain security (--verify-hashes) |
uv-run uv Run
Runs a command in a uv-managed environment and returns structured output.
| Parameter | Type | Description |
|---|---|---|
command * | array | Command and arguments to run (e.g. ['python', 'script.py']) |
compact | boolean | Prefer compact output |
envFile | string | Path to environment file (--env-file FILE) |
frozen | boolean | Run without updating the lockfile (--frozen) |
isolated | boolean | Run in a clean isolated environment (--isolated) |
locked | boolean | Assert the lockfile is up-to-date (--locked) |
module | boolean | Run as python -m <module> instead of a script (-m) |
noSync | boolean | Skip syncing the environment for faster execution (--no-sync) |
outputLimit | integer | Maximum characters to return for stdout/stderr before truncation |
path | string | Working directory |
python | string | Python interpreter version to use (-p VERSION) |
withPackages | array | Additional packages to inject for one-off use (--with PKG) |
black Black Formatter
Runs Black code formatter and returns structured results (files changed, unchanged, would reformat).
| Parameter | Type | Description |
|---|---|---|
check | boolean | Check mode (report without modifying files) |
compact | boolean | Prefer compact output |
config | string | Path to explicit Black config file (--config) |
diff | boolean | Show diff of changes without applying (--diff) |
lineLength | integer | Override the configured line length (--line-length) |
path | string | Project root path |
preview | boolean | Enable preview style (--preview) |
skipStringNormalization | boolean | Skip string quote normalization (-S) |
targetVersion | string | Python version to target, e.g. 'py310', 'py311', 'py312' (--target-version) |
targets | array | Files or directories to format (default: ["."]) |
conda Conda
Runs conda commands (list, info, env-list, create, remove, update) and returns structured JSON output.
| Parameter | Type | Description |
|---|---|---|
action * | string | Conda action to perform |
all | boolean | For update action, update all installed packages (--all) |
compact | boolean | Prefer compact output |
name | string | Environment name (used with 'list' action to list packages in a specific env) |
packageFilter | string | Regex filter for conda list to show only matching packages |
packages | array | Packages used by create/remove/update actions |
path | string | Working directory |
prefix | string | Environment prefix path as alternative to name (--prefix DIR) |
pyenv pyenv
Manages Python versions via pyenv.
| Parameter | Type | Description |
|---|---|---|
action * | string | The pyenv action to perform |
command | string | Command name for `which` action (e.g. python, pip) |
compact | boolean | Prefer compact output |
force | boolean | Force reinstallation of an already installed version (--force) |
path | string | Working directory |
skipExisting | boolean | Skip installation if version is already installed (--skip-existing) |
unset | boolean | Clear local/global version setting (--unset) |
version | string | Python version string (required for install/uninstall/local/global, e.g. '3.12.0') |
poetry Poetry
Runs Poetry commands and returns structured output. Supports install, add, remove, show, build, update, lock, check, and export actions.
| Parameter | Type | Description |
|---|---|---|
action * | string | Poetry action to perform |
compact | boolean | Prefer compact output |
dryRun | boolean | Preview changes without applying, for install/add/remove (--dry-run) |
exportFormat | string | Export format for export action |
format | string | Build output format for build action |
group | string | Dependency group for install/add/remove (e.g. 'dev') |
latest | boolean | Show latest available version, for show action (--latest) |
outdated | boolean | Show only outdated packages, for show action (--outdated) |
output | string | Output file for export action (-o FILE) |
packages | array | Packages for add/remove actions |
path | string | Working directory |
tree | boolean | Show dependency tree, for show action (--tree) |
withoutHashes | boolean | Exclude hashes in exported requirements (--without-hashes) |