Name | qpp JSON |
Version |
0.3.1
JSON |
| download |
home_page | None |
Summary | Query PyPI, ask it anything. |
upload_time | 2023-11-20 19:11:24 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9,<4 |
license | None |
keywords |
pypi
query
search
find
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# qpp - Query PyPI
[![Python versions](https://img.shields.io/pypi/pyversions/qpp.svg)](https://pypi.org/project/qpp/)
[![PyPI version](https://img.shields.io/pypi/v/qpp.svg)](https://pypi.org/project/qpp/)
[![License](https://img.shields.io/pypi/l/qpp.svg)](https://pypi.org/project/qpp/)
Find Python projects on pypi.org on the command line or from your own code.
## Usage
### On the command line
```bash
% qpp exists talk-like-a-pirate
The package name talk-like-a-pirate has not yet been registered on PyPI.
%
```
```bash
% qpp info pip
pip v23.1.1
The PyPA recommended tool for installing Python packages.
Author: The pip developers <distutils-sig@python.org>
License: MIT
Homepage: https://pip.pypa.io/
Package URL: https://pypi.org/project/pip/
Project URL: https://pypi.org/project/pip/
Python versions: >=3.7
Keywords:
Classifiers:
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development :: Build Tools
%
```
`qpp info --description pip` or, short, `qpp info pip -d`, displays the same as above, but also includes the project's README.
`qpp` can render READMEs written in Markdown (using [rich](https://pypi.org/project/rich/)), reStructuredText (using [rich-rst](https://pypi.org/project/rich-rst/)), and plain text.
`qpp open <name>` opens the package's PyPI project page in the system's default browser.
```bash
% qpp search pypi -n 3
pypi
PyPI is the Python Package Index at http://pypi.org/
Version: v2.1
Released: Mar 24, 2018
URL: https://pypi.org/project/pypi/
pypi1108
My short description for my project.
Version: v5.2.0
Released: Nov 8, 2022
URL: https://pypi.org/project/pypi1108/
pypi-client
PyPI command-line tool
Version: v0.2.3
Released: Dec 17, 2020
URL: https://pypi.org/project/pypi-client/
%
```
The -n option limits the amount of results shown.
### As a library
```python
from qpp import queries as pypi
# exists:
assert pypi.exists('pypi')
assert not pypi.exists('talk-like-a-pirate')
# info:
pkg_info = pypi.info('rich')
from qpp.renderables import PackageMetadataRenderable
from rich.console import Console
console = Console()
console.print(PackageMetadataRenderable(pkg_info))
# Output not shown.
# Or with the long description:
console.print(PackageMetadataRenderable(pkg_info, with_description=True))
# Output not shown.
# Search:
found = pypi.search('pypi')
assert len(found)
```
## Credits
`qpp` was cooked with the tastiest ingredients:
- [beautifulsoup4](https://pypi.org/project/beautifulsoup4/)
- [requests](https://pypi.org/project/requests/)
- [rich](https://pypi.org/project/rich/)
- [rich-argparse-plus](https://pypi.org/project/rich_argparse_plus/)
- [rich-rst](https://pypi.org/project/rich-rst/)
Raw data
{
"_id": null,
"home_page": null,
"name": "qpp",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9,<4",
"maintainer_email": null,
"keywords": "pypi,query,search,find",
"author": null,
"author_email": "Ralf Luetkemeier <foss@rlue.de>",
"download_url": "https://files.pythonhosted.org/packages/b7/95/90e8706f618b6c97ff5f51c7f6409743703f010ff88ffa3310ec35432584/qpp-0.3.1.tar.gz",
"platform": null,
"description": "# qpp - Query PyPI\n\n[![Python versions](https://img.shields.io/pypi/pyversions/qpp.svg)](https://pypi.org/project/qpp/)\n[![PyPI version](https://img.shields.io/pypi/v/qpp.svg)](https://pypi.org/project/qpp/)\n[![License](https://img.shields.io/pypi/l/qpp.svg)](https://pypi.org/project/qpp/)\n\nFind Python projects on pypi.org on the command line or from your own code.\n\n## Usage\n\n### On the command line\n\n```bash\n% qpp exists talk-like-a-pirate\nThe package name talk-like-a-pirate has not yet been registered on PyPI.\n%\n```\n\n```bash\n% qpp info pip\npip v23.1.1\nThe PyPA recommended tool for installing Python packages.\n\nAuthor: The pip developers <distutils-sig@python.org>\nLicense: MIT\nHomepage: https://pip.pypa.io/\nPackage URL: https://pypi.org/project/pip/\nProject URL: https://pypi.org/project/pip/\nPython versions: >=3.7\nKeywords:\nClassifiers:\n Development Status :: 4 - Beta\n Intended Audience :: Developers\n License :: OSI Approved :: MIT License\n Programming Language :: Python\n Programming Language :: Python :: 3\n Programming Language :: Python :: 3 :: Only\n Programming Language :: Python :: 3.10\n Programming Language :: Python :: 3.11\n Programming Language :: Python :: 3.9\n Programming Language :: Python :: Implementation :: CPython\n Programming Language :: Python :: Implementation :: PyPy\n Topic :: Software Development :: Build Tools\n%\n```\n\n`qpp info --description pip` or, short, `qpp info pip -d`, displays the same as above, but also includes the project's README.\n\n`qpp` can render READMEs written in Markdown (using [rich](https://pypi.org/project/rich/)), reStructuredText (using [rich-rst](https://pypi.org/project/rich-rst/)), and plain text.\n\n`qpp open <name>` opens the package's PyPI project page in the system's default browser.\n\n```bash\n% qpp search pypi -n 3\npypi\n PyPI is the Python Package Index at http://pypi.org/\n Version: v2.1\n Released: Mar 24, 2018\n URL: https://pypi.org/project/pypi/\n\npypi1108\n My short description for my project.\n Version: v5.2.0\n Released: Nov 8, 2022\n URL: https://pypi.org/project/pypi1108/\n\npypi-client\n PyPI command-line tool\n Version: v0.2.3\n Released: Dec 17, 2020\n URL: https://pypi.org/project/pypi-client/\n%\n```\n\nThe -n option limits the amount of results shown.\n\n### As a library\n\n```python\nfrom qpp import queries as pypi\n# exists:\nassert pypi.exists('pypi')\nassert not pypi.exists('talk-like-a-pirate')\n# info:\npkg_info = pypi.info('rich')\nfrom qpp.renderables import PackageMetadataRenderable\nfrom rich.console import Console\nconsole = Console()\nconsole.print(PackageMetadataRenderable(pkg_info))\n# Output not shown.\n# Or with the long description:\nconsole.print(PackageMetadataRenderable(pkg_info, with_description=True))\n# Output not shown.\n# Search:\nfound = pypi.search('pypi')\nassert len(found)\n```\n\n## Credits\n\n`qpp` was cooked with the tastiest ingredients:\n\n- [beautifulsoup4](https://pypi.org/project/beautifulsoup4/)\n- [requests](https://pypi.org/project/requests/)\n- [rich](https://pypi.org/project/rich/)\n- [rich-argparse-plus](https://pypi.org/project/rich_argparse_plus/)\n- [rich-rst](https://pypi.org/project/rich-rst/)\n",
"bugtrack_url": null,
"license": null,
"summary": "Query PyPI, ask it anything.",
"version": "0.3.1",
"project_urls": null,
"split_keywords": [
"pypi",
"query",
"search",
"find"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "0a972f6e2adb6ec29dac82d02f44f8c3c550a27c9b188f53319f0336dac58bbb",
"md5": "cd97aeed92f8a477a8712f98e16c7885",
"sha256": "6496e928bc039d16678ebb0cbf1250c749f9155eb16361aab43069931b96dbc1"
},
"downloads": -1,
"filename": "qpp-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cd97aeed92f8a477a8712f98e16c7885",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4",
"size": 8758,
"upload_time": "2023-11-20T19:11:23",
"upload_time_iso_8601": "2023-11-20T19:11:23.228194Z",
"url": "https://files.pythonhosted.org/packages/0a/97/2f6e2adb6ec29dac82d02f44f8c3c550a27c9b188f53319f0336dac58bbb/qpp-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b79590e8706f618b6c97ff5f51c7f6409743703f010ff88ffa3310ec35432584",
"md5": "817e288d47ca5fadd206f410ed905684",
"sha256": "48b1c1403f2528df6050a0f09ab72b656665bdb043fefb14824fbf4ee1e4a9d4"
},
"downloads": -1,
"filename": "qpp-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "817e288d47ca5fadd206f410ed905684",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4",
"size": 11660,
"upload_time": "2023-11-20T19:11:24",
"upload_time_iso_8601": "2023-11-20T19:11:24.840171Z",
"url": "https://files.pythonhosted.org/packages/b7/95/90e8706f618b6c97ff5f51c7f6409743703f010ff88ffa3310ec35432584/qpp-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-20 19:11:24",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "qpp"
}