I’ve seen more ideas for additional package metadata recently, including security advisories, non-Python dependencies, hardware capabilities, and links to external package managers.
How excited would people be about getting the extrinsic metadata from artefacts (eg dependencies, classifiers) and putting them in a bespoke database?
This metadata would be free to be updated at any point, meaning both new metadata added, and existing metadata updated.
Initially, this database would be read through a single query endpoint, so to get one distribution you would need to specify the environment in the query filters (eg project name, version, Python version, OS/manylinux version, etc).
Query results would contain all the aforementioned details (extrinsic metadata for now, suggested metadata later), along with a link to the artefact for download (and it’s verification details).
I expect the query results could be used in place of the simple index API, although I’m not advocating for it’s depreciation.
One endpoint each for create, update and delete would also exist for writing to the database, although create and delete might be not exposed.
Some things I haven’t figured out:
- Would this be part of the simple API? Even optionally? It couldn’t be served through static files, but it would be nice to have this metadata in a distribution-specific endpoint, obsoleting PEP 658
- Who has the permission to create/update/delete metadata
- What filters should be required in query requests
- What happens when dependencies are updated and differ from what’s in the artefact. I expect updated dependencies to be more correct
If people are excited, would you want a PEP?
really for distributions and releases ↩︎