Module which provides 'yum provides' functionality across many package managers
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file whichprovides-0.4.0.tar.gz.
File metadata
- Download URL: whichprovides-0.4.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08384aec971dc87ccf205b34bb71c4787ea91ff44a9cad2cd632f07b3a600c5e
|
|
| MD5 |
4baaf25f6cefea88d08d1bc69f458288
|
|
| BLAKE2b-256 |
10fd3b821261624f3755578c0c87654e138eefa098b681111524f7975fdbf023
|
File details
Details for the file whichprovides-0.4.0-py3-none-any.whl.
File metadata
- Download URL: whichprovides-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c7f0cf18b6ef95a2139c15313c36bd2dac07e116ca977eb7ab04a1b081cffe6
|
|
| MD5 |
58c9fd8dddac14f3ca8fac4be6687b20
|
|
| BLAKE2b-256 |
5ecebc97505673e1c869e55d6f590ad5ba69917a62461a41c7064df409a8820e
|