Skip to main content

PyPI command-line tool

Project description

PyPI client

CLI tool for searching Python packages by name. Finds matching packages on PyPI, enriches results with GitHub stars and download counts, and ranks them by relevance.

Install

pip install pypi-client

Or with uv:

uv tool install pypi-client

Usage

Usage: pypi-client [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  auth-github  Log into GitHub
  search       Search python package by name

Search

Usage: pypi-client search [OPTIONS] NAME_SEARCH

  Search python package by name

Options:
  --limit INTEGER RANGE           Max number of items to return
  --no-cache                      Clear cache before run
  --log-level [ERROR|WARN|INFO|DEBUG]
                                  Logging level
  --json                          Return in json format
  --threads INTEGER               Number of threads to use
  --help                          Show this message and exit.

Example output:

$ pypi-client search kafka
Found 155 packages:
name                                 downloads  summary                                                version      home_page                                                stars    releases  last_release_date
---------------------------------  -----------  -----------------------------------------------------  -----------  -----------------------------------------------------  -------  ----------  -------------------
kafka-python                           6863094  Pure Python client for Apache Kafka                    2.0.2        https://github.com/dpkp/kafka-python                      4084          34  2020-09-30
confluent-kafka                        3341286  Confluent's Python client for Apache Kafka             1.5.0        https://github.com/confluentinc/confluent-kafka-py...     2017          20  2020-08-07
...

GitHub Authentication

Authenticate with GitHub to increase the API rate limit (60 → 5000 requests/hour):

pypi-client auth-github

Development

Requires Python 3.13+ and uv.

uv sync --dev
uv run python -m pytest

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

pypi_client-0.2.6.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypi_client-0.2.6-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file pypi_client-0.2.6.tar.gz.

File metadata

  • Download URL: pypi_client-0.2.6.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pypi_client-0.2.6.tar.gz
Algorithm Hash digest
SHA256 d68ff34ba2a360f7e2017bf891a4e8a1cdc5d4fd8c7c36841379c51a3ccc9d3b
MD5 0c7306646b7978aa220a971653e313d1
BLAKE2b-256 1b4f4fd26bb833474b863683022f21f5d25e1d84164cab4a55072d256b00f99e

See more details on using hashes here.

File details

Details for the file pypi_client-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: pypi_client-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pypi_client-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c594d0af7dab43f62eba2efc922d2d3ab4c269f284ad414bcfe3937484351cb9
MD5 a7dd699d1f88cad4a0b00ff85e1d58cf
BLAKE2b-256 31f8304b24ae2619909889b12e6c9c54085fbb5415b563fec582e26a545c3861

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page