Use Pip Search
Artifactory supports search using pip's search command in local and virtual repositories. For example:
$ pip search frog-fu --index http://localhost:8081/artifactory/api/pypi/pypi-virtual/ frog-fu - 0.2a INSTALLED: 0.2a (latest) $ pip search irbench --index http://localhost:8081/artifactory/api/pypi/pypi-virtual/ irbench - Image Retrieval Benchmark.
In this example, frog-fu and irbench are two locally installed packages in different local repositories, and both repositories are aggregated by the pypi-virtual repository.
Note
Since pip search has been deprecated, Artifactory no longer supports pip search in remote repositories, including smart repositories. As such, if a virtual repository includes remote repositories, those remote repositories will not be scanned for search results.
Specifying the index
When using the search command, the index should be specified explicitly (without the /simple
at the end), as pip will ignore the index-url
variable in its pip.conf
file.
Use Artifactory Search
PyPI packages can also be searched for using Artifactory's Property Search. All PyPI packages have the properties pypi.name
, pypi.version
and pypi.summary
set by the uploading client, or later during indexing for supported file types.