packageurl-python
packageurl-python copied to clipboard
Python implementation of the package url spec. This project is sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase/ , the Google Summer of Code, nexB and other generous sponsors...
Is it possible to set attributes (such as `version`) in a packageurl object? ``` >>> import packageurl >>> purl = packageurl.PackageURL.from_string('pkg:generic/busybox') >>> purl.version >>> purl.version = 3 Traceback (most recent...
Currently there is a method `to_dict()` but there is no equivalent `from_dict()`. It might be useful to have this as well (use case: templating).
In NixOS a special syntax is used in the package configurations that allow downloading from mirrors, which are then locally configured and can be changed or searched automatically, and allow...
From gitter chat https://gitter.im/package-url/Lobby @tclasen : ``` 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...
It would be very useful if it would be possible to supply a name of a package and then get a purl object. For example. I would like to do...
We should consider creating Package URLs for googlesource URLs. For example: https://chromium.googlesource.com/v8/v8.git/%2Barchive/refs/heads/6.4.388.tar.gz would be `pkg:googlesource/chromium/v8/[email protected]` Where `googlesource` is the type, `chromium` is the namespace, `v8/v8` the name, and `6.4.388` the...
I have a django webapp that uses `packageurl.contrib.django.models.PackageURLMixin` and I get the following error when I try to save a package with a very long name. ``` Traceback (most recent...
Following https://github.com/package-url/packageurl-python/pull/51/files/c1d41a8930b0b89dfc3774b4e18d89de5089e593..7877bb50102482468bdb9b32476d5a6151dc368e#r508692262 Working with regex syntax is always hard but should not be necessary for most of the simple routes. For example, a common pattern `'[^/]+'` in path segment should...
This is reviving https://github.com/package-url/packageurl-python/pull/35 which was closed after renaming the upstream branch.
Currently it seems the `packageurl-python` library is not typed according to PEP 561. Raising for awareness. FYI @jkowalleck