Skip to content
jc-rs
GitHub

pip-list

--pip-listv1.0.0

Converts `pip list` command output to JSON

command
$ pip list | jc-rs --pip-list

A real pair

From the reference corpus (osx-10.14.6/pip-list.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

pip listosx-10.14.6
Package         Version
--------------- -------
ifconfig-parser 0.0.4  
jc              1.5.1  
pip             19.3.1 
setuptools      41.6.0 
wheel           0.33.6 
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "package": "ifconfig-parser",
    "version": "0.0.4"
  },
  {
    "package": "jc",
    "version": "1.5.1"
  },
  {
    "package": "pip",
    "version": "19.3.1"
  },
  {
    "package": "setuptools",
    "version": "41.6.0"
  },
  {
    "package": "wheel",
    "version": "0.33.6"
  }
]

Fixture coverage

5/5oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs pip listjc-rs runs the command itself and parses what it prints. Recognised for: `pip list`, `pip3 list`

Source: crates/jc-rs-parsers/src/package/pip_list.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare