whichprovides
Package manager agnostic support for "yum whichprovides"
which maps a file back to its providing package. This is
useful for generating a package URL (PURL) identifier.
You can install the package from PyPI like so:
$ python -m pip install whichprovides
You can also "splat" the module into your own projects:
$ git clone https://codeberg.org/sethmlarson/whichprovides
$ cp whichprovides/src/whichprovides/__init__.py ./whichprovides.py
Then use the whichprovides() API inside of Python code:
>>> import whichprovides
>>> whichprovides.whichprovides("/usr/lib/x86_64-linux-gnu/libssl3.so")
ProvidedBy(
package_type='deb',
distro='ubuntu',
package_name='libnss3',
package_version='2:3.98-0ubuntu0.22.04.2'
)
The functionality is also accessible from the command line:
$ python -m pip install whichprovides
$ python -m whichprovides /usr/lib/x86_64-linux-gnu/libssl3.so
pkg:deb/ubuntu/libnss3@2:3.98-0ubuntu0.22.04.2
Metadata
Release files for whichprovides 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| whichprovides-0.4.0.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| whichprovides-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / whichprovides-0.4.0.tar.gz
| Download URL | whichprovides-0.4.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08384aec971dc87ccf205b34bb71c4787ea91ff44a9cad2cd632f07b3a600c5e
|
|
BLAKE2b-256 checksum How to use checksums |
10fd3b821261624f3755578c0c87654e138eefa098b681111524f7975fdbf023
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / whichprovides-0.4.0-py3-none-any.whl
| Download URL | whichprovides-0.4.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c7f0cf18b6ef95a2139c15313c36bd2dac07e116ca977eb7ab04a1b081cffe6
|
|
BLAKE2b-256 checksum How to use checksums |
5ecebc97505673e1c869e55d6f590ad5ba69917a62461a41c7064df409a8820e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|