packageurl-python
packageurl-python copied to clipboard
Normalize PURLs from other tools
See https://github.com/supplyshield/supplyshield/blob/7bc6e77e3ea830931fd6eac041a6100b10ca3d19/libinv/blast_radius/cdx.py#L38
def minify_package_url(package):
return package.split("/")[-1].replace("?type=jar", "")
This is a maven PURL derived from a tool TBD that adds an extraneous "?type=jar" which is the default for maven and not needed.
@Hritik14 FYI