Skip to main content

Module purl

Module purl 

Source

Functionsยง

build_npm_purl
Build an npm PURL from components.
build_pypi_purl
Build a PyPI PURL from components.
is_npm_purl
Check if a PURL is an npm package.
is_purl
Check if a string looks like a PURL.
is_pypi_purl
Check if a PURL is a PyPI package.
parse_npm_purl
Parse an npm PURL to extract namespace, name, and version.
parse_purl
Parse a PURL into ecosystem, package directory path, and version. Supports npm, pypi, and (with cargo feature) cargo PURLs.
parse_pypi_purl
Parse a PyPI PURL to extract name and version.
strip_purl_qualifiers
Strip query string qualifiers from a PURL.