packageurl-python icon indicating copy to clipboard operation
packageurl-python copied to clipboard

Add `PURL_TYPES` and enforce validation of PURL types

Open kdeldycke opened this issue 7 months ago • 2 comments

This PR adds a comprehensive list of all pURL types that are referenced in https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst

It also enforces the validation of a pURL type.

For context, I made this list for my Meta Package Manager project, which is mapping pURL types to package managers.

Closes: https://github.com/package-url/packageurl-python/issues/181

kdeldycke avatar May 31 '25 10:05 kdeldycke