dephell package search¶
Search packages on PyPI or Anaconda Cloud.
Simple search by name¶
dephell package search dephell
[
{
"description": "Dependency resolution for Python",
"name": "dephell",
"url": "https://pypi.org/project/dephell/",
"version": "0.3.1"
},
{
"description": "Work with python versions",
"name": "dephell-pythons",
"url": "https://pypi.org/project/dephell-pythons/",
"version": "0.1.0"
},
...
]
Query filters¶
Supported query filters:
- author_email
- author
- description
- download_url
- home_page
- keywords
- license
- maintainer_email
- maintainer
- name
- platform
- summary
- version
Get all projects of author:
$ dephell package search author:orsinium
[
{
"description": "Find project modules and data files (packages and package_data for setup.py).",
"name": "dephell-discover",
"url": "https://pypi.org/project/dephell-discover/",
"version": "0.1.0"
},
...
]
Or get first 10 packages with “environment markers” in the summary:
$ dephell package search --filter=":10" summary:"environment markers"
[
{
"description": "A compiler for PEP 345 environment markers.",
"name": "markerlib",
"url": "https://pypi.org/project/markerlib/",
"version": "0.6.0"
},
{
"description": "Work with environment markers (PEP-496)",
"name": "dephell-markers",
"url": "https://pypi.org/project/dephell-markers/",
"version": "0.2.3"
},
...
]
You can combine any query filters together:
$ dephell package search author:orsinium name:dephell
Anaconda Cloud¶
A few differences from search on PyPI:
- Specify
--repo=conda
to search on Anaconda Cloud. - Search text (text without query filters) is required.
- Available query filters:
type
(conda
,pypi
,env
,ipynb
)platform
(osx-32
,osx-64
,win-32
,win-64
,linux-32
,linux-64
,linux-armv6l
,linux-armv7l
,linux-ppc64le
,noarch
)
- Results also contain fields
links
,license
, andchannel
.
Examples:
$ dephell package search --repo=conda textdistance
[
{
"channel": "conda-forge",
"description": "TextDistance – python library for comparing distance between two or more sequences by many algorithms.",
"license": "LGPL-3.0",
"links": {
"anaconda": "http://anaconda.org/conda-forge/textdistance",
"documentation": "https://pypi.org/project/textdistance/#description",
"homepage": "https://github.com/orsinium/textdistance",
"repository": "https://github.com/orsinium/textdistance"
},
"name": "textdistance",
"version": "4.1.0"
}
]
dephell package search --repo=conda --filter=":5" keras type:ipynb
[
{
"channel": "zenlambda",
"description": "IPython notebook",
"license": {},
"links": {
"anaconda": "http://anaconda.org/zenlambda/keras"
},
"name": "keras",
"version": "2017.02.26.2159"
},
...
]
See also¶
- How to filter commands JSON output.
- dephell package show to show information about single package.
- dephell package list to show information about installed packages.
- dephell package install to install package.