Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include metadata when listing packages to json and verbose enabled #12861

Open
1 task done
flashk opened this issue Jul 20, 2024 · 0 comments
Open
1 task done

Include metadata when listing packages to json and verbose enabled #12861

flashk opened this issue Jul 20, 2024 · 0 comments
Labels
S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature

Comments

@flashk
Copy link

flashk commented Jul 20, 2024

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 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.

Additional context

No other context

Code of Conduct

@flashk flashk added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant