Skip to content

Evolving the pip list json output #11223

Closed
@sbidoul

Description

@sbidoul

Currently, pip list --format=json produces a json array.

I think it could be valuable for pip list to output additional information, such as an environment object with PEP 608 environment markers, etc. Such a change would require the pip list output to evolve in a backward incompatible way, in this case because of the current array output that would need to be converted to an object.

It is to be noted that such back-ward incompatible changes will probably be very infrequent, since we'll presumably only want to add new information to the output. An example of backward compatible change is #11097 which adds a metadata property to the list items.

How should such backward-incompatible changes be addressed ?

  • with a new format option such as --format=json+v2 ?
  • with a new commend such as pip inspect ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions