-
Notifications
You must be signed in to change notification settings - Fork 3.3k
pip show --json #5261
Copy link
Copy link
Closed
Labels
C: list/show'pip list' or 'pip show''pip list' or 'pip show'type: docsDocumentation relatedDocumentation relatedtype: feature requestRequest for a new featureRequest for a new feature
Metadata
Metadata
Assignees
Labels
C: list/show'pip list' or 'pip show''pip list' or 'pip show'type: docsDocumentation relatedDocumentation relatedtype: feature requestRequest for a new featureRequest for a new feature
Description:
This is a feature request, related to #3568 and 4824, but made more necessary by the privatization of pip's internals: let
pip showgain a--jsonflag (or--format=(humanreadable|json)) (also handlingpip show --files) that outputs the result as json (or whatever other format you deem suitable, but pip list already has--format=json(hence the suggestion of--format=jsoninstead of--jsonabove). Otherwise, it becomes necessary to either parse the output of pip show, or to just copy-paste pip's implementation, in order to access the same metadata.What I've run:
e.g.