You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like access to additional package information (author, summary, homepage, ...) when using the list command to output to JSON.
Describe the solution you'd like
When the --format json and --verbose options are provided to the list command, it will add an additional metadata field to the JSON output containing the metadata_dict attribute of the distribution. This would involve adding the following line when outputting to JSON, similar to how inspect outputs the metadata:
info["metadata"] = dist.metadata_dict
Alternative Solutions
The inspect command will output the metadata, so I can combine that with the output from list. However, it would be convenient to just get all the information in a single call when using list.
What's the problem this feature will solve?
I would like access to additional package information (author, summary, homepage, ...) when using the
list
command to output to JSON.Describe the solution you'd like
When the
--format json
and--verbose
options are provided to thelist
command, it will add an additionalmetadata
field to the JSON output containing themetadata_dict
attribute of the distribution. This would involve adding the following line when outputting to JSON, similar to howinspect
outputs the metadata:Alternative Solutions
The
inspect
command will output the metadata, so I can combine that with the output fromlist
. However, it would be convenient to just get all the information in a single call when usinglist
.Additional context
No other context
Code of Conduct
The text was updated successfully, but these errors were encountered: