stevespringett on swid-purl-type
Corrected example Signed-off-b… (compare)
stevespringett on swid-purl-type
Added namespace clarification a… (compare)
stevespringett on swid-purl-type
Clarified tagId and tagVersion … (compare)
Hey @pombredanne - re PEP-561 typing (and beyond the official Rationale), we had a few downstream folk request us type the CycloneDX Python LIb as they had tools like mypy
in their CI processes and it caused extra work (headaches) for them to deal with un-typed dependencies.
tldr: Hygiene I guess?
Anyone know why the python package isn't letting me get a url from a purl?
@app.command()
def get(purl: str):
parsed = PackageURL.from_string(purl)
typer.echo(f"Grabbing {parsed}")
typer.echo("A", purl2url.get_url(purl))
typer.echo("B", purl2url.get_url(parsed.to_string()))
typer.echo("C", purl2url.get_url(str(parsed)))
typer.echo("D", purl2url.get_url(parsed.to_string()))
For this I've tried the two following PURLs:
And for both of them I successfully parse and can print the purl, but the A, B, C, D echos after that are all empty (but don't crash).